コード例 #1
0
    public void Add(IFeedback feedback)
    {
        if (feedback.Feedback == Feedback.Diegetic)
        {
            feedbackDiegetic.Add(feedback);

            if (type == Feedback.Diegetic)
            {
                feedback.Enable();
            }
            else
            {
                feedback.Disable();
            }
        }
        else
        {
            feedbackNoDiegetic.Add(feedback);

            if (type == Feedback.NoDiegetic)
            {
                feedback.Enable();
            }
            else
            {
                feedback.Disable();
            }
        }
    }