void Start() { mobStats = GetComponent <MobStats> (); waveStats = GetComponent <WaveStats> (); waypointManager = GetComponent <WaypointManager> (); canvas = GameObject.Find("Canvas"); }
public void GemStart() { levelManagerObject = GameObject.Find("LevelManager"); levelManager = levelManagerObject.GetComponent <TDLevelManager> (); mobStats = levelManagerObject.GetComponent <MobStats> (); waveStats = levelManagerObject.GetComponent <WaveStats> (); currentHealth = maxHealth; gemCanvas = GetComponentInChildren <Canvas>().gameObject; gemCanvas.SetActive(true); }
void Start() { if (waveStart == true) { manager = GameObject.Find("LevelManager"); waveStats = manager.GetComponent <WaveStats> (); } if (height == true) { raiseMenu = GameObject.Find("raise"); lowerMenu = GameObject.Find("lower"); raise = raiseMenu.GetComponent <HeightAdjust> (); lower = lowerMenu.GetComponent <HeightAdjust> (); } }
void Start() { levelManager = GameObject.Find("LevelManager"); waveStats = levelManager.GetComponent <WaveStats> (); }
void Start() { //mapNumber = SceneManager.GetActiveScene ().buildIndex; waveStats = GetComponent <WaveStats> (); money = GetComponent <Money> (); }
void Start() { waveStats = levelManager.GetComponent <WaveStats> (); lm = levelManager.GetComponent <TDLevelManager> (); }