Esempio n. 1
0
        private void Awake()
        {
            instance = this;

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

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