示例#1
0
        /// <summary>初始化</summary>
        public virtual void Init()
        {
            OnInit?.Invoke();
            AfterGridEffectFinished += BatchEffectCompleted;

            GameEffects effects = ElimlnateCore.Instance.GridEffects;

            string name;
            int    max = mRelateEffectName.Length;

            for (int i = 0; i < max; i++)
            {
                name = mRelateEffectName[i];
                if (i == 0)
                {
                    mStartGridEffectName = name;
                    CurGridEffectName    = mStartGridEffectName;
                }
                else
                {
                }

                if (!string.IsNullOrEmpty(name))
                {
                    effects.GetEffect(name).UpperStrata = this;
                }
                else
                {
                }
            }
        }
        public GridSupplementExecuter()
        {
            GameEffects effects = ElimlnateCore.Instance.GridEffects;

            EnterEffect   = effects.GetEffect(GameEffects.EffectEnter);
            RemainsEffect = effects.GetEffect(GameEffects.EffectRemains);
        }
示例#3
0
 public void Init()
 {
     GridTypes          = new GridTypes();
     GridEffects        = new GameEffects();
     Data               = new EliminateData(this);
     mAutoActiveTimes   = new Queue <float>();
     mActiveTimeRemains = new Queue <float>();
 }