public virtual void Init(int battleGroupId, Vector2 position) { _data = BattleGroupData.GetData(battleGroupId); Animator.runtimeAnimatorController = Resources.Load <RuntimeAnimatorController>("Animator/" + _data.Animator); _cycleTime = 0.5f; transform.position = position; _timer.Start(_cycleTime, Move, true); }
public void ForceEnterBattle() //事件或測試時使用 { DungeonData.RootObject data = DungeonData.GetData(_mapInfo.ID); EnterBattle(BattleGroupData.GetData(data.GetRandomBattleGroup())); }