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; }
public override void Reset() { id = -1; target = null; state = DemolisherState.NONE; speed = FixVector3.zero; healthRecoverTimer = 0; healthRegenInterval = 0; destroyTimer = 0; destroyTime = 0; owner = false; town = null; direction = FixVector3.zero; bornPosition = FixVector3.one; hp = 0; maxHp = 0; damage = 0; transform.position = new Vector3(float.MaxValue, float.MaxValue, float.MaxValue); transform.rotation = Quaternion.identity; PostRenderMessage = null; PostDestroy = null; FindOpponentBuilding = null; }
public void RegisterFindOpponentBuilding(FindOpponentBuildingMethod method) { FindOpponentBuilding = method; }