private void Init() { if (_textMeshProUGUIList == null) { _textMeshProUGUIList = new List <TextMeshProUGUI>(GetComponentsInChildren <TextMeshProUGUI>()); } if (_imageList == null) { _imageList = new List <Image>(GetComponentsInChildren <Image>()); } if (_follower == null) { _follower = GetComponentInChildren <CameraFollower>(); } if (_effect == null) { _effect = GetComponentInChildren <NoticeEffect>(); } }
private void OnDisable() { _textMeshProUGUIList = null; _follower = null; _effect = null; }