/// <summary> /// 全GameComponentを初期化する /// </summary> /// <returns></returns> private IEnumerator InitCoroutine() { yield return(null); //全Startを待つため //Init { yield return(_ObjectSpawner.Init()); } }
private void Awake() { mallWidth = mallWidth % 2 == 0 ? mallWidth - 1 : mallWidth; mallHeight = mallHeight % 2 == 0 ? mallHeight - 1 : mallHeight; storeFurnitureSpawner = StoreFurnitureSpawner.Instance; pathfindingNodeManager = PathfindingNodeManager.Instance; tiles = Tiles.Instance; tiles.Init(); objectSpawner = ObjectSpawner.Instance; objectSpawner.Init(); }