public static void SetOnClick(this UIPointerClick self, UnityAction callback) { self.ActivatingComponent(); self.RemoveOnClick(); self.__onclick = () => { //AkSoundEngine.PostEvent("ConFirmation", Camera.main.gameObject); callback(); }; self.unity_pointerclick.onClick.AddListener(self.__onclick); }
public static void SetEnabled(this UIPointerClick self, bool flag) { self.ActivatingComponent(); self.unity_pointerclick.enabled = flag; }