コード例 #1
0
    public void OnDestroyByGlitch(RotatingGlitchMeatingPoint sender)
    {
        sender.OnDestroyWall    -= OnDestroyByGlitch;
        sender.OnGlitchDetected -= OnGlitchDetected;

        Destroy(gameObject);
    }
コード例 #2
0
    public void OnDestroyByGlitch(RotatingGlitchMeatingPoint sender)
    {
        sender.OnDestroyWall -= OnDestroyByGlitch;
        sender.OnGlitchDetected -= OnGlitchDetected;

        Destroy(gameObject);
    }
コード例 #3
0
    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;
        }
    }
コード例 #4
0
    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;
        }
    }