private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { // TODO: dispose managed state (managed objects). } // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below. // TODO: set large fields to null. onDispose(); unregisterAll(); data.ClearItems(); parent = null; data = null; disposedValue = true; } }
/*=======================================================**=======================================================*/ /*=========================================== CONSTRUCTOR/DECONSTRUCTOR ==========================================*/ /*=======================================================**=======================================================*/ public Tour(CrhcItem parent, JObject data) : base(parent, data) { }
public CrhcFolder(CrhcItem parent, JObject data) : base(parent, data) { children = new List <CHILD_TYPE>(); }
public CrhcItem(CrhcItem parent, JObject data) { this.parent = parent; this.data = data; }
/*=======================================================**=======================================================*/ /*=========================================== CONSTRUCTOR/DECONSTRUCTOR ==========================================*/ /*=======================================================**=======================================================*/ public Landmark(CrhcItem parent, JObject data) : base(parent, data) { }
public BackButton(CrhcItem owner) : base(CrhcConstants.COLOR_TRANSPARENT) { this.owner = owner; arrowTexture = ServiceLocator.getILoader().load <Texture2D>(CachedLoader.SERVER_PATH + "icons/right_icon.png"); setTouchable(true); }
public Experience(CrhcItem parent, JObject data) : base(parent, data) { }