public void OnNotify(Object sender, EventType eventType) { if (_isUnlocked) { return; } GiveAchievement(eventType); }
private void GiveAchievement(EventType eventType) { switch (eventType) { case EventType.OnKeyDownMouse0: case EventType.OnKeyDownMouse1: case EventType.OnKeyMouse0: case EventType.OnKeyMouse1: Debug.Log("Achievement unlocked! Player did something!"); _isUnlocked = true; break; } }
public void OnNotify(Object sender, EventType eventType) { switch (eventType) { case EventType.OnKeyDownMouse0: Debug.Log("Player goes 1 point right"); break; case EventType.OnKeyDownMouse1: Debug.Log("Player goes 1 point left"); break; } }