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);
        }
    }
Exemple #2
0
 private void OnDisable()
 {
     RuntimeSet.Remove(this);
 }
Exemple #3
0
 private void OnDisable()
 {
     EnabledObjects.Remove(this);
     DisabledObjects.Add(this);
 }
Exemple #4
0
 public void RemoveMe()
 {
     RuntimeSet.Remove(this);
 }
Exemple #5
0
 private void OnDisable()
 {
     RuntimeSet.Remove(this.transform);
 }