/// <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(); }
public static void CreateSystems() { //initiate system locator SystemLocator.Awake(); //register systems //SystemLocator.Instance.Register<MusicSystem>(); //SystemLocator.Instance.Register<SceneSwitchSystem>(); }