Tweezers: Functioning gameplay loop + Editor implementation.

This commit is contained in:
Jenny Crowe
2022-02-09 03:29:09 -07:00
parent a0c1070b93
commit 7fbb02d7cc
17 changed files with 874 additions and 40 deletions

View File

@ -7,16 +7,18 @@ namespace RhythmHeavenMania.Games.RhythmTweezers
public class Hair : PlayerActionObject
{
public float createBeat;
private RhythmTweezers game;
private Tweezers tweezers;
private void Awake()
{
tweezers = RhythmTweezers.instance.Tweezers;
game = RhythmTweezers.instance;
tweezers = game.Tweezers;
}
private void Update()
{
float stateBeat = Conductor.instance.GetPositionFromBeat(createBeat, 4f);
float stateBeat = Conductor.instance.GetPositionFromBeat(createBeat + game.tweezerBeatOffset, game.beatInterval);
StateCheck(stateBeat);
if (PlayerInput.Pressed() && tweezers.hitOnFrame == 0)