void MakeBall(int playerNumber, int ballType) { Debug.Log("Added ball: " + ballType.ToString()); Debug.Log(player1.GetBalls()[0].ToString() + ", " + player1.GetBalls()[1].ToString()); if (playerNumber == 1) { player1.AddBall(ballType); // (Display on UI as well) ui.change_spell_sprite(true, player1.GetBalls()); } else { player2.AddBall(ballType); // (Display on UI as well) ui.change_spell_sprite(false, player2.GetBalls()); } }