public static void UnRegister(ColliderButton colliderButton) { if (instance != null) { instance.colliderButtons.Remove(colliderButton); } }
//----------------------------------------------------------- // Public Methods //----------------------------------------------------------- public static void Register(ColliderButton colliderButton) { if (instance == null) { GameObject go = new GameObject("ColliderButtonManager"); instance = go.AddComponent <ColliderButtonManager>(); } instance.colliderButtons.Add(colliderButton); }
//----------------------------------------------------------- // Init //----------------------------------------------------------- void Awake() { _target = (ColliderButton)target; }
public PressedButton(ColliderButton colliderButton, int touchedID) { this.colliderButton = colliderButton; this.touchedID = touchedID; }