public static void ReduceUpdateHungerInterval(this Survival survival, float amount) { survival.kUpdateHungerInterval -= amount; survival.CancelInvoke("UpdateHunger"); survival.InvokeRepeating("UpdateHunger", 0, survival.kUpdateHungerInterval); }
public static void ReduceUpdateHungerInterval(this Survival survival, float amount) { survival.kUpdateHungerInterval -= amount; survival.CancelInvoke("UpdateHunger"); survival.InvokeRepeating("UpdateHunger", 0, survival.kUpdateHungerInterval); }