public void OnGUI() { if (GUI.Button(new Rect(0, 0, 100, 80), "Test 'TimeEvent'")) { _timeEvent = new TimeEvent(3.0f); } }