void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Beispiel #2
0
    void Start()
    {
        rend       = GetComponent <Renderer> ();
        startColor = rend.material.color;

        towerBildManager = TowerBuildManager.instance;
    }
 void Awake()
 {
     if (instance != null)
     {
         Debug.Log("Can have only one tower build manager");
         return;
     }
     instance = this;
 }
Beispiel #4
0
    void Start()
    {
        towerBuildManager = TowerBuildManager.instance;

        standardTurretCost.text = standardTurret.cost.ToString();
        missileTurretCost.text  = missileTurret.cost.ToString();
        laserBeamerCost.text    = laserBeamer.cost.ToString();

        aboutStandardTurretText.text = standardTurret.about;
        aboutMissileTurretText.text  = missileTurret.about;
        aboutLaserBeamerText.text    = laserBeamer.about;
    }
Beispiel #5
0
 private void Start()
 {
     towerBuildManager = FindObjectOfType <TowerBuildManager>() as TowerBuildManager;
 }
Beispiel #6
0
 private void ResetGame()
 {
     _player            = null;
     _waveSpawner       = null;
     _towerBuildManager = null;
 }
Beispiel #7
0
 public void MakePlayerReady()
 {
     TowerBuildManager.GenerateStartingBuildableTowers(Player);
     PlayerReady = true;
 }
Beispiel #8
0
 // Use this for initialization
 void Start()
 {
     diamondLabel      = this.transform.Find("ResourceInfo/DiamondLabel").GetComponent <UILabel> ();
     diamondLabel.text = 0 + "";
     tManager          = new TowerBuildManager();
 }
Beispiel #9
0
	// Use this for initialization
	void Start () {
		diamondLabel = this.transform.Find ("ResourceInfo/DiamondLabel").GetComponent<UILabel> ();
		diamondLabel.text = 0 + "";
		tManager = new TowerBuildManager ();
	}
	void Awake(){
		go1 = (GameObject)GameObject.Instantiate(Resources.Load("Circle"));
		_instance = this;
	}