Destroying Network Objects Issue
So I started this journey on learning networking through Photon and Unity. When I first started I created two players on screen, but they were controlling each other. So I read up and did research and applied this as a fix...
if (!view.IsMine && GetComponent<Player_Controller>() != null)
{
Destroy(GetComponent<Player_Controller>());
}
It worked and both players were able to move properly. But now I'm learning that only the master client can destroy network objects. So I use...
view.RPC("KillEnemy", RpcTarget.All);
But because the player controller script is destroyed on the second player, the guest client, it doesnt read nor find the function for it. I'm at a complete loss here. Please help!
0