Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Basic Photon Question, want other player NOT to see a gameobject

$
0
0
Hi guys,
I have a simple multiplayer game with players creating and joining rooms, everything is working as it should. My question is this : if there are always two players in a room, how would you make sure the OTHER players doesnt see one of the gameobjects? What I have is this

Code (CSharp):
  1.  
  2. void Start () {
  3. CanvasGroup menu = GameObject.Find ("MainMenu").GetComponent<CanvasGroup>();
  4.  
  5.         if (photonView.isMine) {
  6.             menu.alpha = 1;
  7.         } else
  8.              {
  9. menu.alpha =...
Basic Photon Question, want other player NOT to see a gameobject

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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