Example #1
0
 public RunAwayFromTransform(IBehaviourWithRange behaviour, NavMeshAgent agent,
                             ProximityDetector proximityDetector, EnemyBehaviour.MoveState moveState)
     : base((EnemyBehaviour)behaviour, agent, moveState)
 {
     this.proximityDetector = proximityDetector;
     this.rangeBehaviour    = behaviour;
 }
Example #2
0
 public MoveToTransform(EnemyBehaviour Behaviour, NavMeshAgent agent, EnemyBehaviour.MoveState moveState,
                        Transform target) : base(Behaviour, agent, moveState)
 {
     this.target = target;
 }
Example #3
0
 public MoveToTarget(EnemyBehaviour Behaviour, NavMeshAgent agent, EnemyBehaviour.MoveState moveState)
 {
     this.behaviour = Behaviour;
     this.agent     = agent;
     this.moveState = moveState;
 }