Esempio n. 1
0
 public BiologyMovement(Biology biology)
 {
     Biology          = biology;
     WalkStep         = biology.BiologyLook.WalkStep;
     BiologyTransfrom = biology.transform;
     NavMeshAgent     = biology.GetComponent <UnityEngine.AI.NavMeshAgent>();
     NavMeshAgent.stoppingDistance = Closest;
     NavMeshAgent.speed            = Biology.Speed;
     _AvoidancePriority            = biology.Type == uFantasy.Enum.BiologyType.Player ? 50 : 99;
     Stop();
 }
Esempio n. 2
0
 private void Start()
 {
     M1 = Biology.GetComponent <BiologyLook>().M1;
 }