예제 #1
0
        internal void init()
        {
            gameObject.AddComponent <ClickDetector>();
            ClickDetector clicker = gameObject.GetComponent <ClickDetector>();

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