Пример #1
0
    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);
            }
        }
    }
Пример #2
0
 public void Start()
 {
     Instance = this;
 }