public override void VisualDispose() { StopAllCoroutines(); _iEyeTracingPos = null; _config = null; }
public override void VisualInit() { _iEyeTracingPos = FindObjectsOfType <MonoBehaviour>().OfType <IEyeTracingPos>().First(); //此处初始化可以通过配置表和读取资源动态生成 _config = new EyeTracingVisualConfig(EyeTracinGameObject, 0.2f); }