Esempio n. 1
0
        static void Postfix(EnvironmentSpawnRotation __instance)
        {
#if DEBUG
            Logger.log.Notice("EnvironmentSpawnRotation Start");
#endif
            Instance = __instance;
        }
Esempio n. 2
0
        static void Postfix(EnvironmentSpawnRotation __instance)
        {
#if DEBUG
            Plugin.Log.Info("Got EnvironmentSpawnRotation instance");
#endif
            Instance = __instance;
        }
Esempio n. 3
0
        protected IEnumerator Get360Managers()
        {
            yield return(new WaitForSeconds(0.5f));

            _beatLineManager          = null;
            _environmentSpawnRotation = null;

            var testList = Resources.FindObjectsOfTypeAll <BeatLineManager>();

            if (testList.Length > 0)
            {
                _beatLineManager = testList.FirstOrDefault();

                _environmentSpawnRotation = Resources.FindObjectsOfTypeAll <EnvironmentSpawnRotation>().FirstOrDefault();
            }

            if (_beatLineManager)
            {
                this._yAngle = _beatLineManager.midRotation;
            }
        }