protected void SendInstantKey(string key, Action callback = null) { if (!IsActive) { return; } ActionManager.SendInstantAction(() => { KeyUtils.SendMessage(key); }, callback); }
protected void SendKey(string str, float duration, Action callback) { if (!IsActive) { return; } ActionManager.SendAction(() => { KeyUtils.SendMessage(str); }, duration, callback); }