You can no longer stab multiple peas at once (Fork Lifter)

This commit is contained in:
Braedon
2022-02-05 23:03:31 -05:00
parent 2af84478ed
commit f376e30ee2
31 changed files with 2791 additions and 363 deletions

View File

@ -1,3 +1,4 @@
using System.Collections.Generic;
using UnityEngine;
using RhythmHeavenMania.Util;
@ -8,6 +9,7 @@ namespace RhythmHeavenMania.Games.DJSchool
{
[Header("Components")]
[SerializeField] private Student student;
[SerializeField] private GameObject djYellow;
[Header("Properties")]
public GameEvent bop = new GameEvent();
@ -55,6 +57,13 @@ namespace RhythmHeavenMania.Games.DJSchool
new MultiSound.Sound("djSchool/ooh", beat + 2f),
});
BeatAction.New(djYellow, new List<BeatAction.Action>()
{
new BeatAction.Action(beat, delegate { djYellow.GetComponent<Animator>().Play("BreakCmon", 0, 0); }),
new BeatAction.Action(beat + 1f, delegate { djYellow.GetComponent<Animator>().Play("BreakCmon", 0, 0); }),
new BeatAction.Action(beat + 2f, delegate { djYellow.GetComponent<Animator>().Play("Hold", 0, 0); }),
});
student.holdBeat = beat;
student.ResetState();
}
@ -68,6 +77,13 @@ namespace RhythmHeavenMania.Games.DJSchool
new MultiSound.Sound("djSchool/hey", beat + 2f),
});
BeatAction.New(djYellow, new List<BeatAction.Action>()
{
new BeatAction.Action(beat, delegate { djYellow.GetComponent<Animator>().Play("Scratcho", 0, 0); }),
new BeatAction.Action(beat + 1f, delegate { djYellow.GetComponent<Animator>().Play("Scratcho2", 0, 0); }),
new BeatAction.Action(beat + 2.05f, delegate { djYellow.GetComponent<Animator>().Play("Hey", 0, 0); }),
});
student.swipeBeat = beat;
student.ResetState();
}