示例#1
0
 public void JustMessage()
 {
     if (getMessage.Length > 0)
     {
         GameGlue.TryShowMessage(getMessage, messageWait);
     }
 }
示例#2
0
 public void TryCondition()
 {
     if (refVariable.GetState() == conditionNeed)
     {
         onConditionMet.Invoke();
     }
     else
     {
         onConditionFailed.Invoke();
         if (failedMessage.Length > 0)
         {
             GameGlue.TryShowMessage(failedMessage, failMessageTime);
         }
     }
 }
示例#3
0
    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);
        }
    }