Beispiel #1
0
        protected int _curLayer;                                // 当前层


        #endregion

        public BuffInfo(BuffTemplateInfo obj)
        {
            _info     = obj;
            _curLayer = 0;

            _needTick     = !MathHelper.IsZero(_intervalTime);
            _duration     = _info.duration / 1000f;
            _intervalTime = _info.interval_time / 1000f;
            ResetTimeOut();
        }
Beispiel #2
0
        public static void CreateData()
        {
            Object obj = Resources.Load("test_buff_dat");

            info = obj as BuffTemplateInfo;
        }
Beispiel #3
0
 public BaseBuff(BuffTemplateInfo buffObj)
 {
     Info = new BuffInfo(buffObj);
 }