// Use this for initialization void Start() { cam = GetComponent <Camera>(); mkGlow = GetComponent <MKGlowSystem.MKGlow>(); ChartEditor.Instance.events.viewModeSwitchEvent.Register(UpdateCullingMask); UpdateCullingMask(Globals.viewMode); }
// Use this for initialization void Start() { cam = GetComponent <Camera>(); mkGlow = GetComponent <MKGlowSystem.MKGlow>(); EventsManager.onViewModeSwitchEventList.Add(UpdateCullingMask); UpdateCullingMask(Globals.viewMode); }
public void SceenCaptureNotesOnly() { foreach (GameObject go in objectsToDisableDuringNotesOnlyScreenshot) { go.SetActive(false); } GameObject beatLines = GameObject.Find("Beat Lines"); beatLines.SetActive(false); MKGlowSystem.MKGlow mkGlow = GameObject.FindObjectOfType <MKGlowSystem.MKGlow>(); mkGlow.enabled = false; TakeScreenshot(); foreach (GameObject go in objectsToDisableDuringNotesOnlyScreenshot) { go.SetActive(true); } beatLines.SetActive(true); mkGlow.enabled = true; }
void Start() { m = GetComponent<MKGlow>(); framesSinceInit = 0; }
void Awake() { mkGlow = this.GetComponent<MKGlow>(); InitGlowSystem(); skin.horizontalSlider.fixedHeight = 25f; }
void Start() { glow = this.gameObject.GetComponent<MKGlow>(); }
void Awake () { mkGlow = this.GetComponent<MKGlow>(); InitGlowSystem(); }