예제 #1
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;
        }
예제 #2
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;
        }
예제 #3
0
        public override void Reset()
        {
            id = -1;

            state = CrystalCarState.NONE;
            town  = null;

            hp     = 0;
            maxHp  = 0;
            damage = 0;

            transform.position = new Vector3(float.MaxValue, float.MaxValue, float.MaxValue);
            transform.rotation = Quaternion.identity;

            PostRenderMessage = null;
            PostDestroy       = null;

            FindOpponentSoldiers = null;
            FindOpponentCrystal  = null;
        }
예제 #4
0
 public void RegisterFindOpponentSoldiers(FindOpponentSoldiersMethod method)
 {
     FindOpponentSoldiers = method;
 }