Beispiel #1
0
 public void SetPlayer(BombermanNetworkPlayer player)
 {
     if (player.hasAuthority)
     {
         networkPlayer = player;
     }
 }
Beispiel #2
0
    public void Init(BombermanNetworkPlayer netPlayer)
    {
        networkPlayer = netPlayer;
        playerId      = networkPlayer.PlayerId;
        lives         = GameManager.PLAYER_LIVES;

        spawnPoint = GameManager.Instance.SpawnPoints [networkPlayer.PlayerId].transform.position;

        CmdSetInitialized(spawnPoint);
    }