public override void OnStartServer() { Debug.Log("Server started"); networkEntityPool = GameObject.Find("NetEntityPool"); curSeed = System.DateTime.Now.ToString(); players = new List <GameObject> (); mapGenerator.GenerateNewMap(curSeed); coinPlacer = GameObject.Find("Coins").GetComponent <CoinPlacement>(); coinPlacer.PlaceCoins(); levelText = GameObject.Find("LevelInfo").GetComponent <Text> (); levelText.text = "Level " + level; //coinPlacer.PlaceEnemies (); // disable client stuff }
public override void OnStartServer() { Debug.Log ("Server started"); networkEntityPool = GameObject.Find ("NetEntityPool"); curSeed = System.DateTime.Now.ToString(); players = new List<GameObject> (); mapGenerator.GenerateNewMap (curSeed); coinPlacer = GameObject.Find ("Coins").GetComponent<CoinPlacement>(); coinPlacer.PlaceCoins (); levelText = GameObject.Find ("LevelInfo").GetComponent<Text> (); levelText.text = "Level " + level; //coinPlacer.PlaceEnemies (); // disable client stuff }