- Home /
 
               Question by 
               J830930 · Oct 15, 2015 at 04:29 PM · 
                photonspawnpoints  
              
 
              Photon Spawn Question..
 Please Help me
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
 
 
             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
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                