Instantiating enemies with RPCManager
Hi, I'm working on a two-player game where players can spawn enemies to attack the other. When each player spawns, I first instantiate the enemy locally and then use an RPCManager to instantiate it on the other player's side (I tried using PhotonNetwork.Instantiate to begin with, but since I needed to update enemies' properties as soon as they were spawned, this was easier). However, now I'm having an issue where player 1 can spawn enemies, but when player 2 tries to spawn an enemy I get an error saying "Received RPC ... but this PhotonView does not exist!" Does anyone know what the cause of this could be? I can post code snippets if it would be useful, but since I don't know where the problem is coming from I'm not currently sure what would be helpful.