override public void AddCloud(GameObject CloudPoint) { CloudData cloud_status = CloudPoint.GetComponent <CloudData>(); cloud_status.globalMetaData.cloud_id = id; table.Add(id, cloud_status); // // Call for the newly created object to be selected by CloudSelector instance CallOnCloudCreated(id); id++; }
override public void RemoveCloud(int id) { if (CheckID(id)) { CallOnCloudDeleted(id); CloudData data = table[id]; table.Remove(id); Destroy(data.transform.parent.gameObject); if (table.Count == 0) { OnStorageEmpty(); } } }