示例#1
0
        public override void Reset()
        {
            this.id            = -1;
            this.towerTypeID   = -1;
            mark               = ForceMark.NoneForce;
            transform.position = Vector3.zero;
            position           = FixVector3.zero;
            state              = BuildingState.BUILD;
            buildCost          = 0;
            maxHp              = 0;
            attackArea         = 0;
            attackInterval     = 0;
            rangeDmgVar        = 0;
            rangeDmgBase       = 0;
            damage             = 0;
            physicalResistance = 0;
            magicResistance    = 0;
            recycleValue       = 0;
            projectileId       = 0;

            towerBuildTime     = 0;
            towerBuildingTimer = 0;

            PostRenderMessage = null;
            PostDestroy       = null;
            GetRandomNumber   = null;
            PostBattleMessage = null;

            FindOpponentSoldier          = null;
            FindOpponentDemolisher       = null;
            FindOpponentCrystalCar       = null;
            FindOpponentSoldiers         = null;
            WithinCircleAreaPredicate    = null;
            WithinFrontRectAreaPredicate = null;
        }
示例#2
0
        public override void Reset()
        {
            buffHandler.Clear();

            frontSwingTimer = 0;
            durationTimer   = 0;

            PostDestroy       = null;
            PostBattleMessage = null;
            PostRenderMessage = null;

            // Register Generator method
            GenerateAttributeEffect = null;
            GenerateProjectile      = null;

            // Register logic method
            FindOwnForceSoldiers    = null;
            FindFriendlySoldiers    = null;
            FindOpponentSoldier     = null;
            FindOpponentSoldiers    = null;
            FindOpponentBuilding    = null;
            FindOpponentCrystal     = null;
            FindOpponentCrystalCar  = null;
            FindOpponentCrystalCars = null;
            FindOpponentDemolisher  = null;
            FindOpponentDemolishers = null;
            FindNeutralUnits        = null;
            FindNeutralUnit         = null;

            WithinCircleAreaPredicate    = null;
            WithinFrontRectAreaPredicate = null;
            WithinSectorAreaPredicate    = null;
        }
示例#3
0
 public void RegisterFindOpponentDemolisher(FindOpponentDemolisherMethod method)
 {
     FindOpponentDemolisher = method;
 }