Ejemplo n.º 1
0
    public void RemoveGameForPlayer(NetworkIdentity playerIdentitiy)
    {
        DeviceView associatedView = GetDeviceForPlayer(playerIdentitiy);

        if (associatedView != null)
        {
            associatedView.SetCurrentGame(null);
        }
    }
Ejemplo n.º 2
0
    public void SetCurrentGame(Player player, GameData gameData)
    {
        DeviceView currentDevice = GetDeviceForPlayer(player);

        if (currentDevice != null)
        {
            currentDevice.SetCurrentGame(gameData);
            gameData.OnPlayerExitsGame += PlayerExitsGame;
        }
    }