Exemplo n.º 1
0
        // ===================================================================================
        // UNITY METHODS ---------------------------------------------------------------------

        protected virtual void OnEnable()
        {
            HOtk2dGUIManager.AddButton(this);
            // Add to eventual toggle group
            if (_isToggle && _toggleGroupid != "")
            {
                if (_toggleGroupid == "")
                {
                    return;
                }
                if (!_TogglesByGroupId.ContainsKey(_toggleGroupid))
                {
                    _TogglesByGroupId.Add(_toggleGroupid, new List <HOtk2dButton>());
                }
                _TogglesByGroupId[_toggleGroupid].Add(this);
            }
        }
Exemplo n.º 2
0
 void ChangeCamera(Camera cam)
 {
     _guiCamera = cam;
     HOtk2dGUIManager.RemoveButton(this);
     HOtk2dGUIManager.AddButton(this);
 }