Added sounds, fixed some bugs
added a sound for the tambourine, spider web, and background music.\n- finally fixed the web animation\n- added Sir Jacques to the web animation\n- changed the way the fire point tracks the grapple
This commit is contained in:
@@ -62,12 +62,25 @@ public class PlayerBehavior : MonoBehaviour
|
||||
_hInput = value.Get<Vector2>().x;
|
||||
if (_hInput < 0)
|
||||
{
|
||||
// if (forward != -1) { // if character hasnt already flipped
|
||||
// FlipScale();
|
||||
// }
|
||||
forward = -1;
|
||||
}
|
||||
else if (_hInput > 0)
|
||||
{
|
||||
// if (forward != 1) { // if character hasnt already flipped
|
||||
// FlipScale();
|
||||
// }
|
||||
forward = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void FlipScale() { // DOENST WORK RIGHT
|
||||
Vector3 currentScale = this.gameObject.transform.localScale;
|
||||
currentScale.x *= -1;
|
||||
this.gameObject.transform.localScale = currentScale;
|
||||
}
|
||||
|
||||
void ThrowTambourine() {
|
||||
|
||||
Reference in New Issue
Block a user