public void takeCannonDamage(Village v) { v.networkView.RPC ("setHealthNet", RPCMode.AllBuffered, v.getHealth () - 1); if (v.getHealth () <= 0) { v.networkView.RPC ("setGoldNet",RPCMode.AllBuffered,0); v.networkView.RPC ("setWoodNet",RPCMode.AllBuffered,0); v.networkView.RPC ("switchPrefabNet",RPCMode.AllBuffered,(int)VillageType.Hovel); Tile respawnLocation = getTileForRespawn(v.getControlledRegion()); respawnLocation.networkView.RPC ("replaceTilePrefabNet",RPCMode.AllBuffered,v.gameObject); networkView.RPC ("moveVillagePrefabNet",RPCMode.AllBuffered,v.networkView.viewID, new Vector3(respawnLocation.point.x, 0.1f, respawnLocation.point.y)); v.networkView.RPC ("setLocatedAtNet",RPCMode.AllBuffered,respawnLocation.networkView.viewID); } }