public void JustMessage() { if (getMessage.Length > 0) { GameGlue.TryShowMessage(getMessage, messageWait); } }
public void TryCondition() { if (refVariable.GetState() == conditionNeed) { onConditionMet.Invoke(); } else { onConditionFailed.Invoke(); if (failedMessage.Length > 0) { GameGlue.TryShowMessage(failedMessage, failMessageTime); } } }
public void ChangeState() { if (value == -1) { if (refVariable.GetState() == GameVariable.OFF) { refVariable.TurnOn(); } else if (refVariable.GetState() == GameVariable.ON) { refVariable.TurnOff(); } } else { refVariable.ChangeCustom(value); } if (getMessage.Length > 0) { GameGlue.TryShowMessage(getMessage, messageWait); } }