Advertisement
kadyr

Untitled

Sep 25th, 2021
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using Photon.Pun;
  4. using UnityEngine;
  5.  
  6. public class FallGuysGameManager : MonoBehaviourPunCallbacks
  7. {
  8. [SerializeField]
  9. private GameObject PlayerPrefab;
  10. void Start()
  11. {
  12. PhotonNetwork.Instantiate(PlayerPrefab.name, transform.position + new Vector3(Random.Range(-5,5),0,0)
  13. , Quaternion.identity);
  14. }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement