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