public IEnumerator StartFSM() { mem = gameObject.GetComponent<GregarianSpacialMemory> (); state = GregarianStates.Wandering; agent = gameObject.GetComponent<NavMeshAgent> (); while (true) yield return StartCoroutine (state.ToString ()); }
void Start() { rb = this.gameObject.GetComponent <Rigidbody> (); navMeshAgent = this.gameObject.GetComponent <NavMeshAgent> (); steeringForce = Vector3.zero; mem = gameObject.GetComponent <GregarianSpacialMemory>(); StartCoroutine(this.gameObject.GetComponent <GregarianFSM> ().StartFSM()); }
public IEnumerator StartFSM() { mem = gameObject.GetComponent <GregarianSpacialMemory> (); state = GregarianStates.Wandering; agent = gameObject.GetComponent <NavMeshAgent> (); while (true) { yield return(StartCoroutine(state.ToString())); } }
// Use this for initialization void Start() { mem = gameObject.GetComponent<GregarianSpacialMemory> (); smellRadius = 4f; }
void Start() { rb = this.gameObject.GetComponent<Rigidbody> (); navMeshAgent = this.gameObject.GetComponent<NavMeshAgent> (); steeringForce = Vector3.zero; mem = gameObject.GetComponent<GregarianSpacialMemory>(); StartCoroutine(this.gameObject.GetComponent<GregarianFSM> ().StartFSM ()); }
// Use this for initialization void Start() { mem = gameObject.GetComponent <GregarianSpacialMemory> (); smellRadius = 4f; }
void Start() { agent = this.gameObject.GetComponent <NavMeshAgent> (); mem = gameObject.GetComponent <GregarianSpacialMemory> (); fsm = gameObject.GetComponent <GregarianFSM> (); }
// Use this for initialization void Start() { mem = gameObject.GetComponent<GregarianSpacialMemory> (); }
// Use this for initialization void Start() { mem = gameObject.GetComponent <GregarianSpacialMemory> (); }