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(); }
public static void CreateData() { Object obj = Resources.Load("test_buff_dat"); info = obj as BuffTemplateInfo; }
public BaseBuff(BuffTemplateInfo buffObj) { Info = new BuffInfo(buffObj); }