protected override void OnDestroy() { CurrencyController?.Dispose(); ShopController?.Dispose(); AdsController?.Dispose(); DailyBonusController?.Dispose(); StorageController?.Dispose(); base.OnDestroy(); }
protected override void Dispose(bool disposing) { // Only managed resources to dispose if (!disposing) { return; } // Dispose owned objects _storageController?.Dispose(); }