Beispiel #1
0
 public override void OnBreakon()
 {
     if (!isBroken)
     {
         Bomb();
     }
     else
     {
         GridField.RemoveTile(this.ParentGrid);
     }
 }
        public override void OnStart(params object[] data)
        {
            base.OnStart();

            _field = new GridField();

            var battlecontroller = ModuleManager.getInstance.GetModule <BattleControllerModule>();

            battlecontroller.Field = _field;

            var areastr  = string.Format("Area_{0}", _areaIndex);
            var levelstr = string.Format("Level_{0}", _curLevel);

            if (_field.Load(areastr, levelstr))
            {
                _field.OnElimination += OnElimination;
            }

            //_field.Load(areastr, levelstr);
            //_field.OnElimination = OnElimination;
        }
Beispiel #3
0
 public void SetGridField(GridField gf)
 {
     _gridfield = gf;
 }
Beispiel #4
0
        virtual public void OnBreakon()
        {
            Debug.LogFormat("我是{0}块,我被毁掉了", GetGridType());

            GridField.RemoveTile(this.ParentGrid);
        }