public void OnDestroyByGlitch(RotatingGlitchMeatingPoint sender) { sender.OnDestroyWall -= OnDestroyByGlitch; sender.OnGlitchDetected -= OnGlitchDetected; Destroy(gameObject); }
public void OnGlitchDetected(RotatingGlitchMeatingPoint sender, RotatingGlitchMeatingPoint.e_GlitchDetectionStatus glitchDetectionStatus) { switch (glitchDetectionStatus) { case RotatingGlitchMeatingPoint.e_GlitchDetectionStatus.ENTERING: m_Renderer.material.color = m_ReactionColor; break; case RotatingGlitchMeatingPoint.e_GlitchDetectionStatus.EXITNG: m_Renderer.material.color = m_OriginalColor; break; default: return; } }