I am trying to make offline multiplayer game in unity3D. All connections are working fine but I have not created an object other than the players until now. When I create a GameObject on client's RPC funtion, it gets created and destroyed instantly. I have tried creating it in its update func and on server, but same result all the time. Here's the code:
[ClientRpc]publicvoidRpcPlayerShowCards(){GameObject x =(GameObject)Instantiate(gameObj,Vector3.zero,Quaternion.identity);}...
GameObject gets deleted automatically after creation on Client or Server Unity3D
[ClientRpc]publicvoidRpcPlayerShowCards(){GameObject x =(GameObject)Instantiate(gameObj,Vector3.zero,Quaternion.identity);}...
GameObject gets deleted automatically after creation on Client or Server Unity3D