コード例 #1
0
    public override void OnBeat(int beat)
    {
        if (BeatIndex.IsBeat(beatTypeDisable))
        {
            DisableAllWiser();
        }

        if (BeatIndex.IsBeat(beatTypeEnable))
        {
            DisableWiser(moveIndex);
            moveIndex++;
            SetWiser(moveIndex);
        }
    }
コード例 #2
0
    public void Beat(int index)
    {
        var active = false;

        if (useBeatType)
        {
            active = BeatIndex.IsBeat(beatType, offset);
        }
        else
        {
            if (platformBeat.Length == 0)
            {
                return;
            }
            active = (platformBeat[((index + offset) / beatMultiplier) % platformBeat.Length]);
        }
        spriteRenderer.enabled = active;
        tag = active ? platformTag : voidTag;
    }