5 protected bool m_IsUnderRoof;
6 protected bool m_IsActive;
7 protected int m_UpdateCounter;
8 protected const int UPDATE_ROOFCHECK_COUNT = 3;
12 m_ProcuringItem = procuringItem;
18 void StartRainProcurement()
28 void StopRainProcurement()
39 void OnUpdate(
float deltaTime,
float amount)
42 if (m_UpdateCounter == 0 || m_UpdateCounter == UPDATE_ROOFCHECK_COUNT)
47 ProcureLiquid(amount);
50 protected void Reset()
55 protected void ProcureLiquid(
float amountBase,
int liquidType =
LIQUID_WATER)
59 float actualAmount = amountBase * GetBaseLiquidAmount();
60 Liquid.FillContainerEnviro(m_ProcuringItem, liquidType, actualAmount);
64 protected void UpdateIsUnderRoof()
66 m_IsUnderRoof = MiscGameplayFunctions.IsUnderRoof(m_ProcuringItem);
70 float GetBaseLiquidAmount()
80 void SetActive(
bool run)