protected void InitEyeState(EyeStatesEnum state) { switch(state){ case EyeStatesEnum.HAPPY: _dilationTween = Tween.to(_normalDilation, _normalDilation * 1.3f, 4.0f, Tween.EaseType.easeInCubicOutSine, (Tween tween) => {Dilation = (float)tween.Value;}, null, 0f, true, -1); break; case EyeStatesEnum.DRUGGED: Dilation = _normalDilation * 1.6f; break; default: break; } }
public void SetState(EyeStatesEnum state) { State = state; InitState(State); Eye.SetState(State); }
protected void InitState(EyeStatesEnum state) { switch(state){ case EyeStatesEnum.HAPPY: Hover(); Breath(); //HelloInterval(); break; case EyeStatesEnum.DRUGGED: Hover(); Breath(); StartSearchInterval(); if (FacePlayerSporadically) StartFacePlayerInterval(); break; default: Hover(); break; } }