// Start is called before the first frame update void Awake() { playerPositionsSet.Clear(); foreach (Transform tr in transform) { playerPositionsSet.Add(tr); } }
public void OnTriggerEnter(Collider other) { Thing thing = other.gameObject.GetComponent <Thing>(); if (thing != null) { Debug.Log(other.gameObject.name + " This was added to " + this.gameObject.name.ToString()); Set.Add(thing); } }
private void OnEnable() { RuntimeSet.Add(this); }
private void OnDisable() { EnabledObjects.Remove(this); DisabledObjects.Add(this); }
private void OnEnable() { RuntimeSet.Add(this.transform); }