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
	}
 public void GenerateNewMap()
 {
     //DESTROY EVERYTHING
     if (isServer)
     {
         networkEntityPool.GetComponent <DestroyAllChildren>().ResetLevel();
         curSeed = System.DateTime.Now.ToString();
         CmdGenerateMaps(curSeed);
         coinPlacer.PlaceCoins();
         level         += 1;
         levelText.text = "Level " + level;
         // destroy all the network entities
         //coinPlacer.PlaceEnemies ();
     }
     else
     {
         Debug.LogError("STOP TRYING TO MAKE A NEW LEVEL AS A CLIENT T_T");
     }
 }