- Home /
Question by
J830930 · Oct 15, 2015 at 04:29 PM ·
photonspawnpoints
Photon Spawn Question..
Please Help me
using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic;
public class NetworkLogic : Photon.PunBehaviour {
private PhotonView myPhotonView;
public Transform[] SpawnArray;
void Start () {
myPhotonView = this.GetComponent<PhotonView>();
}
void OnJoinedRoom()
{
GameObject monster = PhotonNetwork.Instantiate("monster", SpawnArray[PhotonNetwork.player.ID].position, Quaternion.identity, 0);
}
}
dfdsf.jpg
(141.5 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612041420im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Photon - Distinguishing player types for spawns 0 Answers
Trying to set different spawn with photon 0 Answers
Synchronize multiple spawnpoints (Photon + RCC) 0 Answers
Spawn point for specific player.Photon Pun2 0 Answers
UFPS / Photon multiplayer, Spawnpoints not being found on new scene load 0 Answers