Beispiel #1
0
 public CombatStage(ICyberAgent selfAgent, ICyberAgent target, NavMeshAgent navMeshAgent) : base(selfAgent, navMeshAgent)
 {
     this.opponent = target;
     coverPoints   = GameObject.FindObjectsOfType <CoverPoint>();
     selfAgent.toggleHide();
     selfAgent.aimWeapon();
     //selfAgent.togglepSecondaryWeapon();
     selfAgent.togglePrimaryWeapon();
     targetLocations = opponent.getTransfrom().gameObject.GetComponentsInChildren <Collider>();
     findTargetLocationToFire();
 }