Пример #1
0
    void Awake()
    {
        Instance = this;

        _inner            = transform.Find("PauseCanvasInner").gameObject;
        _announcementText = transform.Find("AnnouncementText").GetComponent <Text>();
    }
 // Start is called before the first frame update
 void Start()
 {
     parentManager = this.GetComponentInParent <PauseUIManager>();
     //myButton = this.GetComponent<Button>();
     this.TryGetComponent <Button>(out myButton);
 }