Enemies

To create opponents for the network, do the following:

  1. Add EnemySync to the already existing enemy prefab

  2. Add PhotonTransformView

  3. Specify this script in PhotonView

Save the new prefab in the [/Resources] folder. The enemy is ready to appear in the game.

Please note: prefabs of enemies must be located in the [/Resources] folder; otherwise they won't be created in the game.