Exemple #1
0
 // Use this for initialization
 void Start()
 {
     flashTimer          = new Timer(FLASH_DURATION);
     flashTimer.Elapsed += (sender, args) => {
         flashFunc();
     };
     yourButton.onClick.AddListener(() => { if (enabled)
                                            {
                                                controller.SocketClick(this);
                                            }
                                    });
     GetComponentInChildren <Text> ().text = gameObject.name;
 }