Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

DontDestroyOnLoad and Photon, players not visible

$
0
0
Hello guys, I have come across a problem and it has been bothering me for the past day or two. In my game I set up the player's spell to be ready for the fight scene, so after its done I use DontDestroyOnLoad to keep it to the next scene where the other players are gonna be connecting. After its loaded and the match starts I enable these objects in the fight scene but the players can not see each other. I understand that this is because it is not PhotonNetwork.Instantiate but if I want to instantiate with Photon to make it visible for other players (I had it like that and players could see each other) I have to use a prefab inside the Resources folder, but that prefab doesnt have the spells that the players selected in the previous scene. So I'm looking maybe if there is a way to use Photon Instantiate and create a object from a object in script (the player object that is passed is saved in a gameController that is passed as well ) I would really appreciate any help here, thanks!

Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>