Example #1
0
        private void Awake()
        {
            instance = this;

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

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