Exemplo n.º 1
0
 private void Awake()
 {
     bg            = transform.GetChild(0).GetComponent <RectTransform>();
     segments      = transform.GetChild(1).GetComponent <RectTransform>();
     groupLayout   = segments.GetComponent <HorizontalLayoutGroup>();
     mainHealthBar = segments.transform.GetChild(0).gameObject;
     fade          = transform.parent.GetComponent <FadingUI>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     panelImage         = GetComponent <FadingUI>();
     inputManagerStatic = GameObject.Find("InputManager").GetComponent <InputManagerStatic>();
 }
Exemplo n.º 3
0
 private void Awake()
 {
     _fader = GetComponent<FadingUI>();
 }