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