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