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