protected override void InitObjects()
        {
            base.InitObjects();

            m_StoreControl = CocoLoad.GetOrAddComponent <CocoStoreControl> (gameObject);
            BindValue(m_StoreControl);
        }
Exemple #2
0
        private bool RegisterInstance()
        {
            if (_instance == null)
            {
                _instance = this;
                return(true);
            }

            if (_instance == this)
            {
                return(true);
            }

            Destroy(this);
            return(false);
        }