override protected void Init() { _dungeonData = FindObjectOfType <DungeonData>(); #if DEBUG if (_dungeonData == null) { _dungeonData = new DungeonData(); _dungeonData.parameter = new DungeonParameter(4500, 4500, 0, 0, 1, 0, 0, 0, "j"); for (int i = 0; i < _dungeonData.parameter.stocks.Length; i++) { _dungeonData.parameter.stocks[i] = 3; } _dungeonData.SetIsBossBattle(true); elementalAffinity = _dungeonData.battleType.ToEnum <Element, BlockType>(); } #endif _party = new string[] { "Amelia", "Dhiel", "Rizel", "Iska" }; _profileType = new Type[] { typeof(Amelia), typeof(Dhiel), typeof(Rizel), typeof(Iska) }; IsBoss = _dungeonData.isBossBattle; InitBattleStates(); mainPlayer = FindObjectOfType <MainPlayer>(); actorList = new List <GameObject>(); enemyList = new List <GameObject> (); currentFloor = _dungeonData.parameter.floor; _spawner = FindObjectOfType <ActorSpawner>(); _attackTracker = FindObjectOfType <AttackTracker>(); _uiMgr = FindObjectOfType <UIMgr> (); _enemies = new EnemyPatterns(); elementalAffinity = _dungeonData.battleType.ToEnum <Element, BlockType>(); }