Пример #1
0
        public void RegisterThisView()
        {
            if (_mobileControlMgr == null)             // Just in case this method gets called before the awake method was called...
            {
                _mobileControlMgr = MobileControlManager.Instance;
            }

            if (_mobileControlMgr != null)
            {
                _mobileControlMgr.RegisterView(this);
            }
            else
            {
                Debug.LogWarning("MobileControlManager.RegisterThisView(): Could not find MobileControlManager. View is not registered.", gameObject);
            }
        }
Пример #2
0
 protected virtual void Awake()
 {
     _mobileControlMgr = MobileControlManager.Instance;
 }
        protected virtual void Awake()
        {
            _mobileControlMgr = MobileControlManager.Instance;

            RegisterThisView();
        }