Exemple #1
0
    private void OnTriggerExit(Collider collider)
    {
        Lane d = BeatmapGame.GetLane(collider.transform);

        if (d == Lane.Empty)
        {
            isHittingDrum = false;
        }
    }
Exemple #2
0
    private void OnTriggerEnter(Collider collider)
    {
        Lane d = BeatmapGame.GetLane(collider.transform);

        if (d != Lane.Empty)
        {
            if (isHittingDrum)
            {
                //return;
            }
            isHittingDrum = true;
            BeatmapGame.instance.HitDrum(d);
        }
        else
        {
            SkipSong skip = collider.GetComponent <SkipSong>();
            if (skip)
            {
                BeatmapGame.SkipAheadToFirstBeat();
            }
        }
        print(collider);
    }