コード例 #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
ファイル: UILifeBar.cs プロジェクト: zhaoyabo/GameBase
 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>();
 }