Skip to content

Commit

Permalink
Change Messages
Browse files Browse the repository at this point in the history
Bugfix ItemSpawn
  • Loading branch information
maxklock committed Apr 3, 2016
1 parent e6205e6 commit ed7117e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 3 additions & 7 deletions Assets/Scripts/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,9 @@ private void Update()
if (_itemSpawn <= 0)
{
_itemSpawn = ItemSpawnTime;
AddMessage("New Item");

for (var i = 0; i < ItemPositions.Length; i++)
{
Instantiate(Item, ItemPositions[i], Quaternion.Euler(Vector3.zero));
}
// Instantiate(Item, GetRandomItemPosition(), Quaternion.Euler(Vector3.zero));
AddMessage("New Boost Item");

Instantiate(Item, GetRandomItemPosition(), Quaternion.Euler(Vector3.zero));
}
}

Expand Down
3 changes: 1 addition & 2 deletions Assets/Scripts/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,14 @@ private void Update()

Rigidbody.AddForce(new Vector3(0, JumpFactor * JumpSpeed, 0));
animator.SetBool("jumping", true);

}

if (Input.GetButtonDown("B " + (int)InputType) && !isRespawning)
{
Shoot();
}
animator.SetBool("roll", false);
if (Input.GetButtonDown("X " + (int)InputType) && !isRespawning)
if (_onGround && Input.GetButtonDown("X " + (int)InputType) && !isRespawning)
{


Expand Down

0 comments on commit ed7117e

Please sign in to comment.