SHARE
TWEET

Untitled

a guest Mar 26th, 2020 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using Photon.Pun;
  2. using System.IO;
  3. using UnityEngine;
  4.  
  5. public class GameSetupController : MonoBehaviour
  6. {
  7.  
  8.     void Start()
  9.     {
  10.         CreatePlayer();
  11.     }
  12.  
  13.     private void CreatePlayer(){
  14.         Debug.Log("Creating Player");
  15.         PhotonNetwork.Instantiate(Path.Combine("PhotonPrefabs", "PhotonPlayer"), Vector3.zero, Quaternion.identity);
  16.     }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top