public override void Start() { EntityManager.Instance.RegisterEntity(this); cSteeringWander = GetComponent <UnitySteer.Behaviors.SteerForWander>(); cSteeringPursuit = GetComponent <UnitySteer.Behaviors.SteerForPursuit>(); animator = GetComponent <Animator>(); biped = GetComponent <UnitySteer.Behaviors.Biped>(); rb = GetComponent <Rigidbody>(); audio = GetComponent <AudioSource>(); target = null; targets = new HashSet <BaseGameEntity>(); cSteeringWander.enabled = true; cSteeringPursuit.enabled = false; animator.SetFloat("MoveSpeed", 0); }
// Use this for initialization private void Awake() { pursuitUS = GetComponent<SteerForPursuit> (); }
private void Awake() { currTime = 0f; pursuitUS = GetComponent<SteerForPursuit> (); }
// Use this for initialization private void Awake() { pursuitUS = GetComponent <SteerForPursuit> (); }
private void Awake() { currTime = 0f; pursuitUS = GetComponent <SteerForPursuit> (); }