Trick on the Class: basic gameplay with placeholders

This commit is contained in:
minenice55
2022-04-10 21:05:33 -04:00
parent c3ef726ef8
commit 27dd45148e
3 changed files with 107 additions and 114 deletions

View File

@ -43,6 +43,14 @@ namespace HeavenStudio.Games
instance = this;
}
private void Update()
{
if (PlayerInput.Pressed())
{
PlayerDodge();
}
}
public void TossObject(float beat, int type)
{
switch (type)
@ -80,8 +88,15 @@ namespace HeavenStudio.Games
thinker.startBeat = beat;
thinker.flyType = isPlane;
thinker.curve = curve;
thinker.type = type;
mobj.SetActive(true);
}
public void PlayerDodge()
{
//anim
Jukebox.PlayOneShotGame("trickClass/player_dodge");
}
}
}