Пример #1
0
        /// <summary>Sets the SystemLocator singleton instance.</summary>
        public static void Awake()
        {
            if (Instance != null)
            {
                throw new System.InvalidOperationException("Cannot re-awake a system locator");
            }

            Instance = new SystemLocator();
        }
Пример #2
0
        public static void CreateSystems()
        {
            //initiate system locator
            SystemLocator.Awake();

            //register systems
            //SystemLocator.Instance.Register<MusicSystem>();
            //SystemLocator.Instance.Register<SceneSwitchSystem>();
        }