Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

there is a game, using photon, i have create and do every thing, just i need one change, in the game for each person there is a prefab that create when every body join the room, i want to create a different prefab for the current player in compare to the other player?

Here is the code, i need a if condition to do that, is there any body can help me,

finger1 = (GameObject) PhotonNetwork.Instantiate( FingerA.name, randomHoles[fingerTempPosition].transform.position, randomHoles[fingerTempPosition].transform.rotation, 0);

For example instead of FingerA i want to create FingerB if the current player.

the condition is cometh Thank you,

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.