Esempio n. 1
0
 public void reset()
 {
     registeredBeat       = new RegisteredBeat(0, SongRow.BoxType.NONE);
     checkingTrail        = false;
     beatBoxArrival       = null;
     lastLaneHit          = -10;//init with value higher than maxTimeDelta
     beatBoxArrivalTime   = -10;
     trailArrivalTime     = -10;
     handTransform        = null;
     spawningBlock        = null;
     prevPosition         = transform.position;
     beatPlayMode         = BeatPlayMode.TRIGGER_IMMEDIATE;
     audioLoopOffsetTotal = 0;
     //addedBeatDuration = 0;
     //beatCyclesWhileInside = 0;
     //tmpBeatCyclesWhileInside = 0;
     wasAudioTriggered = false;
 }
Esempio n. 2
0
    void switchLooping()
    {
        //currentBeatProgress = 0;
        if (beatPlayMode + 1 <= BeatPlayMode.LOOP_TO_AUDIO)
        {
            beatPlayMode++;
        }
        else
        {
            beatPlayMode = 0;//BeatPlayMode.TRIGGER_IMMEDIATE;
        }
        if (beatPlayMode != BeatPlayMode.LOOP_TO_AUDIO && beatPlayMode != BeatPlayMode.LOOP_TO_BEAT)
        {
            mat.SetColor("_BaseColor", AssetManager.instance.getHitBoxColor(false));
        }
        else
        {
            mat.SetColor("_BaseColor", AssetManager.instance.getHitBoxLoopColor());
        }

        setLabelText();
    }