public void Update() { Instance = this; foreach (PotentialField potentialField in _potentialFields.ToArray()) { if (Time.time - potentialField.LastRequested > cullDelay) { //Debug.LogFormat("Dropping potentialField for {0}", potentialField.Target); _potentialFields.Remove(potentialField); } } }
public void Start() { Instance = this; }