コード例 #1
0
    public void SetTarget(GameObject target, Vector2 targetPosition)
    {
        AITargetObject      targetObject = new AITargetObject(target, targetPosition);
        BuildingAttackState attackState  = new BuildingAttackState(this, targetObject, this.m_AttackBehavior);

        this.ChangeState(attackState);
    }
コード例 #2
0
 public AttackState(NewAI aiBehavior, AITargetObject target, AttackBehavior attackBehavior) : base(aiBehavior)
 {
     this.m_Target         = target;
     this.m_AttackBehavior = attackBehavior;
 }
コード例 #3
0
 public InvaderAttackState(NewAI aiBehavior, AITargetObject target, AttackBehavior attackBehavior)
     : base(aiBehavior, target, attackBehavior)
 {
     this.m_StateName = "InvaderAttack";
 }
コード例 #4
0
 public BuildingAttackState(NewAI aiBehavior, AITargetObject target, AttackBehavior attackBehavior)
     : base(aiBehavior, target, attackBehavior)
 {
 }