超大量的更新 修复很多问题,gameplay特效初步
This commit is contained in:
@@ -6,13 +6,13 @@ namespace utils
|
||||
public class FileUtils
|
||||
{
|
||||
/// <summary>
|
||||
/// 在unity resource内路径读取Img对象
|
||||
/// Documentation text normalized.
|
||||
/// </summary>
|
||||
/// <param name="path"></param>
|
||||
/// <returns></returns>
|
||||
public static Sprite getImage(string path)
|
||||
{
|
||||
// 从 Resources 加载 Sprite
|
||||
// Documentation text normalized.
|
||||
Sprite sprite = Resources.Load<Sprite>(path);
|
||||
if (sprite == null)
|
||||
{
|
||||
@@ -23,4 +23,4 @@ namespace utils
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user