Пример #1
0
        public void OnApplicationStart()
        {
            Log.Debug("OnApplicationStart");
            new GameObject("SpectroSaberController").AddComponent <SpectroSaberController>();
            new GameObject("SSSaberManager").AddComponent <SaberManager>();
            new GameObject("SSSpectrogramManager").AddComponent <SpectrogramManager>();
            SpectrogramData sd = new GameObject("SSSpectrogramData").AddComponent <SpectrogramData>();

            sd.CreateBasicSpectrogramData();

            SettingsUI.CreateButton();

            BS_Utils.Utilities.BSEvents.gameSceneLoaded += SpectroSaberController.Instance.OnGameSceneLoaded;
            BS_Utils.Utilities.BSEvents.LevelFinished   += SpectroSaberController.Instance.OnLevelDidFinish;
        }