void Start() { Observable.EveryUpdate() .Where(x => Input.GetKeyDown(KeyCode.S)) .Subscribe(_ => QEventSystem.SendEvent(TestEvent.TestOne, "Hello world")); }
void Start() { Observable.EveryUpdate() .Subscribe(_ => QEventSystem.SendEvent(TestEvent.TestOne, "Hello World!")); }
private void Update() { QEventSystem.SendEvent(TestEvent.TestOne, "Hello World!"); }
void Start() { Observable.EveryUpdate() .Where(x => Input.GetMouseButtonDown(0)) .Subscribe(_ => QEventSystem.SendEvent(TestEvent.TestOne, "Hello World!")); }