Example #1
0
    public void CommandInput(string s)
    {
        s = s.ToLowerInvariant();
        switch (s)
        {
        case "example":
            if (OnExampleEvent != null)
            {
                OnExampleEvent.Invoke();
            }
            break;

        case "fps":
            if (OnFPSDebugToggle != null)
            {
                OnFPSDebugToggle.Invoke();
            }
            break;
        }
    }
Example #2
0
    // OnExampleEvent?.Invoke();

    public static void ExampleEvent()
    {
        OnExampleEvent?.Invoke();
    }