public static void CheckCreepState(TowerType type, Creep creep) { if (creep.Type == CreepType.Cloth) { ClothCreepStateChanger.ChangeStatesIfClothCreep(type, creep); } else if (creep.Type == CreepType.Sand) { SandCreepStateChanger.ChangeStatesIfSandCreep(type, creep); } else if (creep.Type == CreepType.Glass) { GlassCreepStateChanger.ChangeStatesIfGlassCreep(type, creep); } else if (creep.Type == CreepType.Wood) { WoodCreepStateChanger.ChangeStatesIfWoodCreep(type, creep); } else if (creep.Type == CreepType.Plastic) { PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(type, creep); } else if (creep.Type == CreepType.Iron) { IronCreepStateChanger.ChangeStatesIfIronCreep(type, creep); } else if (creep.Type == CreepType.Paper) { PaperCreepStateChanger.ChangeStatesIfPaperCreep(type, creep); } }
public void CheckForImpactTower() { GlassCreepStateChanger.ChangeStatesIfGlassCreep(TowerType.Impact, creep); Assert.IsFalse(creep.State.Sudden); }