Class SurvivalHandler
Handler class that relates to the Survival component. Allows the defining of oxygen or health gains when consuming specific items.
public static class SurvivalHandler
- Inheritance
-
SurvivalHandler
- Inherited Members
Methods
GiveHealthOnConsume(TechType, float)
makes the item Heal the player on consume.
public static void GiveHealthOnConsume(TechType techType, float healthBack)
Parameters
techTypeTechType- the TechType that you want it to heal back
healthBackfloat- amount to heal the player
GiveHealthOnConsume(TechType, float, bool)
[Obsolete]
public static void GiveHealthOnConsume(TechType techType, float healthBack, bool isEdible)
Parameters
GiveOxygenOnConsume(TechType, float)
makes the item gives oxygen on use.
public static void GiveOxygenOnConsume(TechType techType, float oxygenGiven)
Parameters
techTypeTechType- the TechType that you want to make it give oxygen on use
oxygenGivenfloat- the oxygen amount the item gives
GiveOxygenOnConsume(TechType, float, bool)
[Obsolete]
public static void GiveOxygenOnConsume(TechType techType, float oxygenGiven, bool isEdible)
Parameters
RunActionOnConsume(TechType, Action)
runs a custom action on consume.
public static void RunActionOnConsume(TechType techType, Action customAction)
Parameters
techTypeTechType- the TechType that you want it to heal back
customActionAction- the Action to perform.
RunActionOnConsume(TechType, Action, bool)
[Obsolete]
public static void RunActionOnConsume(TechType techType, Action customAction, bool isEdible)