public IEnumerator StartFSM()
 {
     mem = gameObject.GetComponent<GregarianSpacialMemory> ();
     state = GregarianStates.Wandering;
     agent = gameObject.GetComponent<NavMeshAgent> ();
     while (true)
         yield return StartCoroutine (state.ToString ());
 }
Beispiel #2
0
 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> ();
 }
Beispiel #9
0
 // Use this for initialization
 void Start()
 {
     mem = gameObject.GetComponent <GregarianSpacialMemory> ();
 }