photon instantiate code example
Example 1: photon how to instantiate an object
PhotonNetwork.Instantiate("MyPrefabName", new Vector3(0, 0, 0), Quaternion.identity, 0);
Example 2: instantiate a player in photon
PhotonNetwork.Instantiate(avatar, Vector3.zero, Quaternion.identity, 0);
//Note: Vector and Quaternion are used to init the position and rotation of the avatar.