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(); }
private void Start() { M1 = Biology.GetComponent <BiologyLook>().M1; }