Beispiel #1
0
    public IEnumerator LoadBattleInternalResources(string id, Action <GameObject> result)
    {
        BattleDebug.Log("--- バトル内部リソース単体ロード id[" + id + "] : 開始");
        GameObject BattleInternalResources = base.Instantiate <GameObject>(ResourcesPath.GetBattleInternalResourcesPrefab(id));

        yield return(null);

        BattleInternalResources.name = id;
        BattleInternalResources.transform.SetParent(base.battleStateData.BattleInternalResourcesRoot);
        BattleInternalResources.transform.Clear();
        result(BattleInternalResources);
        BattleDebug.Log("--- バトル内部リソース単体ロード id[" + id + "] : 完了");
        yield break;
    }