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>(); }
// Use this for initialization void Start() { panelImage = GetComponent <FadingUI>(); inputManagerStatic = GameObject.Find("InputManager").GetComponent <InputManagerStatic>(); }
private void Awake() { _fader = GetComponent<FadingUI>(); }