internal void init() { gameObject.AddComponent <ClickDetector>(); ClickDetector clicker = gameObject.GetComponent <ClickDetector>(); clicker.dispatcher.AddListener(ClickDetector.CLICK, onClick); }
internal void init() { gameObject.AddComponent <ClickDetector>(); clicker = gameObject.GetComponent <ClickDetector>(); StartCoroutine(addClicker()); }
internal void init() { gameObject.AddComponent<ClickDetector>(); clicker = gameObject.GetComponent<ClickDetector>(); StartCoroutine (addClicker ()); }