fixed player null issue
This commit is contained in:
parent
b15ffe2d49
commit
182947e84f
@ -67,10 +67,13 @@ namespace Assets.Scripts
|
||||
public static bool isGodMode(Player player)
|
||||
{
|
||||
bool result = false;
|
||||
if (player != null)
|
||||
{
|
||||
if (player.getPlayerName().ToLower() == "nicola")
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user