public void Complete(Guild g) { Timer.DelayCall(TimeSpan.FromSeconds(5), DoOccupy, new object[] { Battle, g }); Timer.DelayCall(TimeSpan.FromSeconds(2), DoFireworks); IsActive = false; if (OccupationTimer != null) { OccupationTimer = null; } if (CheckTimer != null) { CheckTimer.Stop(); CheckTimer = null; } Timer.DelayCall(TimeSpan.FromMinutes(2), () => { for (var index = 0; index < Torches.Count; index++) { var t = Torches[index]; t.Delete(); } Torches.Clear(); }); }
public void Complete(Guild g) { if (g != null) { Timer.DelayCall <Guild>(TimeSpan.FromSeconds(5), Battle.OccupyAltar, g); } Timer.DelayCall(TimeSpan.FromSeconds(2), DoFireworks); IsActive = false; if (OccupationTimer != null) { OccupationTimer = null; } if (CheckTimer != null) { CheckTimer.Stop(); CheckTimer = null; } Timer.DelayCall(TimeSpan.FromMinutes(2), () => { Torches.ForEach(t => t.Delete()); Torches.Clear(); }); }
private void Clear() { OccupationTimer.Stop(); OccupationTimer = null; Torches.ForEach(t => t.Delete()); Torches.Clear(); }
private void Clear() { if (OccupationTimer != null) { OccupationTimer.Stop(); OccupationTimer = null; } for (var index = 0; index < Torches.Count; index++) { var t = Torches[index]; t.Delete(); } Torches.Clear(); }