Ejemplo n.º 1
0
    public void Awake()
    {
        if (IsDebugLogEnabled)
        {
            Debug.Log("Awake");
        }
        DemoSettings settings = DemoSettings.GetDefaultSettings();

        this.Game = new Game(this, settings, "unity");
        var peer = new PhotonPeer(this.Game, settings.UseTcp ? ConnectionProtocol.Tcp : ConnectionProtocol.Udp)
        {
            ChannelCount = 3
        };

        this.Game.Initialize(peer);
    }