示例#1
0
 private void Awake()
 {
     _textEl         = transform.Find("Text (TMP)").GetComponent <TextMeshProUGUI>();
     StatorAnimation = GetComponentInChildren <StatorAnimation>();
     DeclineButton   = transform.Find("Decline Button").GetComponent <Button>();
     AcceptButton    = transform.Find("Accept Button").GetComponent <Button>();
 }
示例#2
0
 private void Awake()
 {
     _textEl         = transform.Find("Text (TMP)").GetComponent <TextMeshProUGUI>();
     StatorAnimation = GetComponentInChildren <StatorAnimation>();
     CancelButton    = GetComponentInChildren <Button>();
 }