예제 #1
0
 void Start()
 {
     mobStats        = GetComponent <MobStats> ();
     waveStats       = GetComponent <WaveStats> ();
     waypointManager = GetComponent <WaypointManager> ();
     canvas          = GameObject.Find("Canvas");
 }
예제 #2
0
 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);
 }
예제 #3
0
 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> ();
 }
예제 #5
0
 void Start()
 {
     //mapNumber = SceneManager.GetActiveScene ().buildIndex;
     waveStats = GetComponent <WaveStats> ();
     money     = GetComponent <Money> ();
 }
예제 #6
0
 void Start()
 {
     waveStats = levelManager.GetComponent <WaveStats> ();
     lm        = levelManager.GetComponent <TDLevelManager> ();
 }