Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Spawn GameObjects in a Network

$
0
0
Hi, im trying to spawn GameObects in my multiplayer game, but i get this error in console:

[​IMG]

this is my code:


Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.Networking;
  4.  
  5. public class Spawn : NetworkBehaviour {
  6.     public GameObject prefab;
  7.     public GameObject melee;
  8.     float timerWave;
  9.     float timerCreep;
  10.     public float timeBetweenCreep;
  11.     public float timeBetweenWave;
  12.     public int waveSize;
  13.     int j=0;...
Spawn GameObjects in a Network

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>