internal override void Init(Battle battle) { base.Init(battle); this.skills = new Skill[6]; for (int i = 0; i < this.skills.Length; i++) { this.skills[i] = new Skill(); } this.sensorySystem = new SensorySystem(this); this.fsm = new FiniteStateMachine(this); this.InternalCreateFSMAction(); }
protected override void InternalDispose() { this.sensorySystem.Dispose(); this.sensorySystem = null; this.fsm.Dispose(); this.fsm = null; int count = this.skills.Length; for (int i = 0; i < count; i++) { this.skills[i].Dispose(); } this.skills = null; base.InternalDispose(); }