示例#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();
 }