Example #1
0
 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>();
     }
 }
Example #2
0
 private void OnDisable()
 {
     _textMeshProUGUIList = null;
     _follower            = null;
     _effect = null;
 }