예제 #1
0
        void Start()
        {
            sightRange = transform.Find("Sight Range").GetComponent <CircleCollider2D>();

            rangeDisplay = sightRange.transform.GetChild(0).gameObject;

            selectTower = GameObject.FindWithTag("GameMaster").GetComponent <SelectTower>();

            //sell cost equals half the cost put into the plant
            sellValue = cost / 2;
        }
	// Use this for initialization
	void Start () 
    {
        currCooldown = defaultCooldown;
	    // Needs to see currently selected tower from UI
        selectTower = GameObject.Find("SelectedTower").GetComponent<SelectTower>();
	}
예제 #3
0
 void Start()
 {
     _gameManager = GameObject.Find("GameManager").GetComponent <GameManagerBehavior>();
     _selectTower = GameObject.Find("TowerSelectPanel").GetComponent <SelectTower>();
     towerHUD     = GameObject.Find("OnTowerHUD").GetComponent <HUDBehavior>();
 }