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

Photon Networking - camera tag

$
0
0
So currently I have a game where two players are instantiated using only one prefab. I've figured out local control and all by only enabling the cameras and scripts and such if PhotonView.isMine.

However, I'm wondering if there is a way to differentiate between player 1 and player 2's Cameras (possibly using tags?) since they both have a "main" Camera attached.

For example, I want something like this:
Code (CSharp):
  1.     if (PhotonNetwork.player.ID == 2) {
  2.         myCamera.transform.position...
Photon Networking - camera tag

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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