예제 #1
0
 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
 }
예제 #2
0
	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
	}