private void update() { if (Input.GetKeyDown(KeyCode.Space)) { spaceCount++; OnspacePressed?.Invoke(this, new OnSpacePressedEventArgs { spaceCount = spaceCount }); OnFloatEvent?.Invoke(5.5f); OnActionEvent?.Invoke(true, 56); OnUnityEvent?.Invoke(); } }
public void PublishEvents() { OnFloatEvent?.Invoke(4.5f); OnIntEvent?.Invoke(4); OnStringEvent?.Invoke("Go GO PowerRangers"); }