Browse Source

ability to cycle through skins

A
Josh 2 years ago
parent
commit
3709f8819b
  1. 9
      namedropper/Assets/Scripts/Game.cs
  2. 3
      namedropper/Assets/Scripts/GameManager.cs

9
namedropper/Assets/Scripts/Game.cs

@ -191,5 +191,14 @@ public class Game : MonoBehaviour
{
NextRound();
}
if (Input.GetKeyDown(KeyCode.F11))
{
GameManager.PLAYER_SKIN++;
if (GameManager.PLAYER_SKIN > GameManager.MAX_PLAYER_SKIN)
{
GameManager.PLAYER_SKIN = 0;
}
GameManager.Instance.RestartGame();
}
}
}

3
namedropper/Assets/Scripts/GameManager.cs

@ -19,7 +19,8 @@ public class GameManager
int _numPlayers;
bool _competitive = true;
public const int PLAYER_SKIN = 4; //0 == puck, 1 == pancake, 2 == gummybear, 3==pig, 4==ball w/ bear
public static int PLAYER_SKIN = 0; //0 == puck, 1 == pancake, 2 == gummybear, 3==pig, 4==ball w/ bear
public static int MAX_PLAYER_SKIN = 4;
public GameManager()
{

Loading…
Cancel
Save