Hi!
I've got a problem in the game I'm working on.
I have a class named Bomb and another one named Players. In Bomb I want to access a mehod bombExploded(int player) from Players. I have this in Bomb:
And this in Players:Nohing happens when the Code is executed.
Any suggestions?
Greetings, Leon
Players players = new Players();
if (player == 1)
{
players.bombExploded(1);
}public void bombExploded(int player)
{
if (player == 1)
{
bombsLaid1--;
}
}
