Example #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;
        }
Example #2
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;
        }
Example #3
0
 public void RegisterFindOpponentCrystal(FindOpponentCrystalMethod method)
 {
     FindOpponentCrystal = method;
 }