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); } }
public GoapActionAttack(GoapAgent goapAgent, GoapActionManager goapActionManager) : base(goapAgent, goapActionManager) { cost = 5; stateEnum = StateEnum.Attack; }
public GoapActionIdle(GoapAgent goapAgent, GoapActionManager goapActionManager) : base(goapAgent, goapActionManager) { cost = 100; stateEnum = StateEnum.Idle; }
public GoapAction(GoapAgent goapAgent, GoapActionManager goapActionManager) { InitStatus(); this.goapAgent = goapAgent; this.goapActionManager = goapActionManager; }
public GoapActionMove(GoapAgent goapAgent, GoapActionManager goapActionManager) : base(goapAgent, goapActionManager) { cost = 1; stateEnum = StateEnum.Run; }