Ejemplo n.º 1
0
 public void Start()
 {
     this.goalStates   = new List <GoalState>(this.transform.Find("Goals").GetComponentsInChildren <GoalState>());
     worldEventHandler = this.GetComponentInChildren <WorldEventHandler>();
     worldEventHandler.AddEventListener(this.gameObject);
 }