public void Unregister() { if (Region != null) { Region.Unregister(); Region = null; } if (GuardRegion != null) { GuardRegion.Unregister(); GuardRegion = null; } Manager?.Delete(); if (Stone != null && !Stone.Deleted) { Stone.Delete(); } Banner1?.Delete(); Banner2?.Delete(); }
public void Unregister() { if (Region != null) { Region.Unregister(); Region = null; } if (GuardRegion != null) { GuardRegion.Unregister(); GuardRegion = null; } if (Manager != null) { Manager.Delete(); } if (Stone != null && !Stone.Deleted) { Stone.Delete(); } if (Banner1 != null) { Banner1.Delete(); } if (Banner2 != null) { Banner2.Delete(); } }
public void Unregister() { if (Region != null) { Region.Unregister(); Region = null; } if (GuardRegion != null) { GuardRegion.Unregister(); GuardRegion = null; } }