示例#1
0
 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>();
 }
示例#2
0
 void Start()
 {
     _instance   = this;
     m_transform = this.transform;
     bar_hp      = m_transform.Find("bar_life").GetComponent <Image>();
     this.Invoke("SetPosition", 1f);
 }
示例#3
0
 void Start()
 {
     _instance = this;
     m_transform = this.transform;
     bar_hp = m_transform.Find("bar_life").GetComponent<Image>();
     this.Invoke("SetPosition", 1f);
 }
示例#4
0
 //// MonoBehaviour methods
 void Awake()
 {
     _menaces = new List <EnemyBehaviour>();
     _lifeBar = this.transform.Find("LifeBar").GetComponent <UILifeBar>();
 }
示例#5
0
 //// MonoBehaviour methods
 void Awake()
 {
     _aiAgent = this.GetComponent <NavMeshAgent>();
     _lifeBar = this.transform.Find("LifeBar").GetComponent <UILifeBar>();
 }