static void Postfix(EnvironmentSpawnRotation __instance) { #if DEBUG Logger.log.Notice("EnvironmentSpawnRotation Start"); #endif Instance = __instance; }
static void Postfix(EnvironmentSpawnRotation __instance) { #if DEBUG Plugin.Log.Info("Got EnvironmentSpawnRotation instance"); #endif Instance = __instance; }
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; } }