public MultiplayerService(IPlayerService playerService, IGameService gameService, IUIService uiService, ICameraService cameraService, SignalBus signalBus) { launcher = GameObject.FindObjectOfType <LauncherManager>(); this.uiService = uiService; this.gameService = gameService; this.cameraService = cameraService; playerServerName = new PlayerName(); signalBus.Subscribe <SignalDestroyWeapon>(ChangeTurn); gameRoomManager = GameObject.FindObjectOfType <GameRoomManager>(); this.playerService = playerService; //this.inputService = inputService; }
public CommunicationManager(IMultiplayerService multiplayerService) { roomManager = GameObject.FindObjectOfType <GameRoomManager>(); PhotonNetwork.AddCallbackTarget(this); this.multiplayerService = multiplayerService; }