Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        if (_button.Equals(null))
        {
            _button = GetComponent <UnityEngine.UI.Button>();
        }

        _button.onClick.AddListener(HandleButtonClicked);
    }
Exemplo n.º 2
0
 public static bool  obj_equal(long L, long R)
 {
     UnityEngine.UI.Button left  = FCGetObj.GetObj <UnityEngine.UI.Button>(L);
     UnityEngine.UI.Button right = FCGetObj.GetObj <UnityEngine.UI.Button>(R);
     if (left != null)
     {
         return(left.Equals(right));
     }
     if (right != null)
     {
         return(right.Equals(left));
     }
     return(true);
 }