Exemplo n.º 1
0
        private void _RegisterWithDependancyManager()
        {
            GameObject dependancyGO = _GetDependancyGO();
            IBattleDependancyManager dependancyManager = dependancyGO.GetComponent <IBattleDependancyManager>();

            dependancyManager.Register(this);
        }
Exemplo n.º 2
0
        //----------------------------------------------------------------------------
        //                    Registration
        //----------------------------------------------------------------------------
        private void Awake()
        {
            GameObject dependancyGO = FindObjectOfType <DependancyManagerMarker>().gameObject;
            IBattleDependancyManager dependancyManager = dependancyGO.GetComponent <IBattleDependancyManager>();

            dependancyManager.Register(this);
        }