Exemple #1
0
 protected override void OnDestroy()
 {
     CurrencyController?.Dispose();
     ShopController?.Dispose();
     AdsController?.Dispose();
     DailyBonusController?.Dispose();
     StorageController?.Dispose();
     base.OnDestroy();
 }
Exemple #2
0
        protected override void Dispose(bool disposing)
        {
            // Only managed resources to dispose
            if (!disposing)
            {
                return;
            }

            // Dispose owned objects
            _storageController?.Dispose();
        }