private Sprite LoadSourceSprite(string relativePath)
{
//把資源加載到內存中
UnityEngine.Object Preb = Resources.Load(relativePath, typeof(Sprite));
Sprite sprite = null;
ExceptionHandler.Assert(() => { sprite = Instantiate(Preb) as Sprite; });
//用加載得到的資源對象,實例化游戲對象,實現游戲物體的動態加載
return sprite;
}