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; } } }
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; } }
NoteCutCoreEffectsSpawnerStart.NoteCutCoreEffectsSpawner !.HandleNoteWasCut(noteController, noteCutInfo);