devNotes 7-04-16 accordion 3d button selector – movement – sound follow

public class EventManager : MonoBehaviour { public delegate void ClickAction(); public static event ClickAction OnClicked; void OnGUI() { if(GUI.Button(new Rect(Screen.width / 2 – 50, 5, 100, 30), “Click”)) { if(OnClicked != null) OnClicked(); } } } ————— using UnityEngine; using System.Collections; public class TeleportScript : MonoBehaviour { void OnEnable() { EventManager.OnClicked += Teleport; } void … Continue reading devNotes 7-04-16 accordion 3d button selector – movement – sound follow