private void Awake() { gm = GameManager.instance; gm.objectsInWorld.Add(this); rb = GetComponent <Rigidbody>(); satiety = GetComponent <SatietyController>(); }
void Start() { hc = GetComponent <HealthController>(); hc.task = this; gm = hc.gm; if (hc.satiety) { satiety = hc.satiety; } Invoke("ChooseTask", 1); }