Beispiel #1
0
    private void Awake()
    {
        gm = GameManager.instance;
        gm.objectsInWorld.Add(this);

        rb      = GetComponent <Rigidbody>();
        satiety = GetComponent <SatietyController>();
    }
Beispiel #2
0
    void Start()
    {
        hc      = GetComponent <HealthController>();
        hc.task = this;

        gm = hc.gm;

        if (hc.satiety)
        {
            satiety = hc.satiety;
        }

        Invoke("ChooseTask", 1);
    }