Exemple #1
0
 public void NetworkPlayerRequestAPIPlayer(Player_Internal networkPlayer)
 {
     if (_playerPrefab != null)
     {
         networkPlayer.ReplaceAPIPlayerWithPrefab(_playerPrefab);
     }
 }
Exemple #2
0
        public void NetworkPlayerOnDestroy(Player_Internal player)
        {
            try
            {
                player.apiPlayer.gameObject.SetActive(false); /////////////
            } catch
            {
            }

            _internalPlayers.Remove(player);
        }
Exemple #3
0
        //// Player
        // Internal Player
        void NetworkPlayerCreateLocalPlayer()
        {
            if (_localInternalPlayer != null)
            {
                Debug.Log("Attempting to create local network player while one already exists. This is a bug! Bailing.");
                return;
            }

            GameObject playerGameObject = PhotonNetwork.Instantiate(_internalPlayerPrefabName, Vector3.zero, Quaternion.identity, 0);

            _localInternalPlayer = playerGameObject.GetComponent <Player_Internal>();
            _localInternalPlayer.StartTrackingHardwarePlayer(_application.hardwarePlayer);
        }
Exemple #4
0
 public void NetworkPlayerOnDestroyAPIPlayer(Player_Internal player)
 {
     PlayerLeft(player.apiPlayer);
 }
Exemple #5
0
 public void NetworkPlayerInstantiatedAPIPlayer(Player_Internal player)
 {
     PlayerJoined(player.apiPlayer);
 }
Exemple #6
0
 public void NetworkPlayerInstantiated(Player_Internal player)
 {
     _internalPlayers.Add(player);
 }