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

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