コード例 #1
0
ファイル: GameHub.cs プロジェクト: albekov/coregamesample
        public GameHub(
            ILogger <GameHub> log,
            PlayersHandler playersHandler)
        {
            _log            = log;
            _playersHandler = playersHandler;

            _playersHandler.SetChannel(GetChannel);
        }
コード例 #2
0
ファイル: Client.cs プロジェクト: xQwexx/EscapeRoom
    public void Init(NetworkConnection connection, int cnnId)
    {
        this.connection = connection;
        this.hostId     = cnnId;

        isStarted = false;
        players   = connection.gameObject.GetComponent <PlayersHandler>();
        objects   = connection.gameObject.GetComponent <ObjectsHandler>();
        objects.SetClient(this);
        rooms = connection.gameObject.GetComponent <RoomHandler>();
        rooms.SetClient(this);
    }