void Start() { uiMathTable = GameController.instance.endlessUICanvas.GetComponentInChildren <UIMathTable>(); uiLevelCounter = GameController.instance.endlessUICanvas.transform.Find("StaticLvLText/CurrentLevelText").GetComponent <Text>(); uiLifeBar = GameController.instance.endlessUICanvas.GetComponentInChildren <UILifeBar>(); uICountDown = GameController.instance.endlessUICanvas.GetComponentInChildren <UICountDown>(); }
void Start() { _instance = this; m_transform = this.transform; bar_hp = m_transform.Find("bar_life").GetComponent <Image>(); this.Invoke("SetPosition", 1f); }
void Start() { _instance = this; m_transform = this.transform; bar_hp = m_transform.Find("bar_life").GetComponent<Image>(); this.Invoke("SetPosition", 1f); }
//// MonoBehaviour methods void Awake() { _menaces = new List <EnemyBehaviour>(); _lifeBar = this.transform.Find("LifeBar").GetComponent <UILifeBar>(); }
//// MonoBehaviour methods void Awake() { _aiAgent = this.GetComponent <NavMeshAgent>(); _lifeBar = this.transform.Find("LifeBar").GetComponent <UILifeBar>(); }