Example #1
0
        // Update is called once per frame
        void Update()
        {
            OnGameObjectClick?.Invoke(gameObject);

            if ((PendingBindingFields & Field.TEXT) == Field.TEXT)
            {
                TextScriptCompnent.text = _Text;
                PendingBindingFields   &= ~Field.TEXT;
            }
        }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     OnItemClick = (gameObject) => OnGameObjectClick?.Invoke(gameObject);
 }
Example #3
0
 public void OnPointerClick(PointerEventData eventData)
 {
     OnGameObjectClick?.Invoke(gameObject);
 }