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); }
public AttackState(NewAI aiBehavior, AITargetObject target, AttackBehavior attackBehavior) : base(aiBehavior) { this.m_Target = target; this.m_AttackBehavior = attackBehavior; }
public InvaderAttackState(NewAI aiBehavior, AITargetObject target, AttackBehavior attackBehavior) : base(aiBehavior, target, attackBehavior) { this.m_StateName = "InvaderAttack"; }
public BuildingAttackState(NewAI aiBehavior, AITargetObject target, AttackBehavior attackBehavior) : base(aiBehavior, target, attackBehavior) { }