コード例 #1
0
        private void Awake()
        {
            instance = this;

            pool = new Queue <UIDamageTextView>();
            cam  = Camera.main;
        }
コード例 #2
0
        public static UIDamageTextPresenter Get()
        {
            if (ReferenceEquals(null, instance))
            {
                instance = FindObjectOfType <UIDamageTextPresenter>();
            }

            return(instance);
        }
コード例 #3
0
 private void Awake()
 {
     lifeTimer        = new WaitForSeconds(lifeTime);
     damageTextParent = UIDamageTextPresenter.Get();
 }