public virtual void Init() { goapPlanManager = new GoapPlanManager(this); goapActionManager = new GoapActionManager(this); goapStateManager = new GoapStateManager(this); stateMachine = new StateMachine(this); animationManager = new AnimationManager(transform); skillManager = new SkillManager(this); attackManager = new AttackManager(this); if (HpControllerPanel.instance != null) { hp = HpControllerPanel.instance.GetHp(this); } }
private void Init() { goapGoal = GetComponent <GoapGoal>(); goapPlanManager = new GoapPlanManager(goapGoal); }