Пример #1
0
        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);
            }
        }
Пример #2
0
 private void Init()
 {
     goapGoal        = GetComponent <GoapGoal>();
     goapPlanManager = new GoapPlanManager(goapGoal);
 }