Пример #1
0
 public static void UnRegister(ColliderButton colliderButton)
 {
     if (instance != null)
     {
         instance.colliderButtons.Remove(colliderButton);
     }
 }
Пример #2
0
    //-----------------------------------------------------------
    // Public Methods
    //-----------------------------------------------------------

    public static void Register(ColliderButton colliderButton)
    {
        if (instance == null)
        {
            GameObject go = new GameObject("ColliderButtonManager");
            instance = go.AddComponent <ColliderButtonManager>();
        }
        instance.colliderButtons.Add(colliderButton);
    }
Пример #3
0
    //-----------------------------------------------------------
    // Init
    //-----------------------------------------------------------

    void Awake()
    {
        _target = (ColliderButton)target;
    }
Пример #4
0
 public PressedButton(ColliderButton colliderButton, int touchedID)
 {
     this.colliderButton = colliderButton;
     this.touchedID      = touchedID;
 }