/* * dans monster spawn public void WannaCreateMob(Player_Board.e_monster mob, Player_Board.e_player player){ UpgradeMonsters.Stats info = GameObject.Find ("Board").GetComponent<UpgradeMonsters> ().getNewStats (mob, 1); if (playerBoard.money >= info.cost) { CmdCreateMob (mob, player); GameObject.Find ("GameInterfaces").GetComponent<PopUpMessages>().DisplayMessage("you created a monster", 1); } else GameObject.Find ("GameInterfaces").GetComponent<PopUpMessages>().DisplayMessage("Not enough money", 1); } */ void Start() { timers = GameObject.Find ("GameInterfaces").GetComponent<TimerAndIncome> (); gridController = GameObject.Find("GridController").GetComponent<GridController>(); }
void Start() { menu = GetComponent<InGameInterface> (); timers = GetComponent<TimerAndIncome> (); menu.SetEnableAllCanvas (false); SetGameStatus (e_gamestate.WAITING_CONNECTION); }