Esempio n. 1
0
    void Start()
    {
        satisfaction.Add(ResourceHolder.ResType.WATER, SatisfactionLevel.FULL);
        satisfaction.Add(ResourceHolder.ResType.FOOD, SatisfactionLevel.FULL);
        string TID = Clock.AddTimerInstantTrigger((id) => {
            Consume(ResourceHolder.ResType.FOOD, 0.25f);
        }, 3);

        Clock.AddTimerInstantTrigger((id) => {
            Consume(ResourceHolder.ResType.WATER, 0.25f);
        }, 3);
    }