Пример #1
0
 protected void SendInstantKey(string key, Action callback = null)
 {
     if (!IsActive)
     {
         return;
     }
     ActionManager.SendInstantAction(() => { KeyUtils.SendMessage(key); }, callback);
 }
Пример #2
0
 protected void SendKey(string str, float duration, Action callback)
 {
     if (!IsActive)
     {
         return;
     }
     ActionManager.SendAction(() => { KeyUtils.SendMessage(str); }, duration, callback);
 }