public void OnTriggerExit(Collider other) { Thing thing = other.gameObject.GetComponent <Thing>(); if (thing != null) { Debug.Log(other.gameObject.name + " This was Removed from " + this.gameObject.name.ToString()); Set.Remove(thing); } }
private void OnDisable() { RuntimeSet.Remove(this); }
private void OnDisable() { EnabledObjects.Remove(this); DisabledObjects.Add(this); }
public void RemoveMe() { RuntimeSet.Remove(this); }
private void OnDisable() { RuntimeSet.Remove(this.transform); }