コード例 #1
0
    private void OnTriggerExit(Collider other)
    {
        if (other.tag == "fire")
        {
            myState = States.NONE;
        }

        if (other.tag == "fakefire")
        {
            myState = States.NONE;
        }

        if (other.tag == "selector")
        {
            myState = States.NONE;
        }
        if (other.tag == "note")
        {
            if (myState != States.NOTEBARON)
            {
                myState = States.NONE;
            }
            else
            {
                myState = States.NOTEBAROFF;
                note    = null;
            }
        }
    }
コード例 #2
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == "selector")
        {
            myState = States.SELECTOR;
        }

        if (other.tag == "note")
        {
            if (myState != States.NOTEBAROFF)
            {
                myState = States.NOTE;
            }
            else
            {
                myState = States.NOTEBARON;
                note    = other.GetComponent <noteController>();
            }
        }
        if (other.tag == "notebar")
        {
            myState = States.NOTEBAROFF;
        }
    }
コード例 #3
0
 NoteCutCoreEffectsSpawnerStart.NoteCutCoreEffectsSpawner !.HandleNoteWasCut(noteController, noteCutInfo);