예제 #1
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         tween.DOComplete();
         tween.DOPlayBackwards();
     }
 }
예제 #2
0
    protected override void CustomPlayFeedback(Vector3 position, float feedbacksIntensity = 1.0f)
    {
        switch (Mode)
        {
        case Modes.DOPlay:
            TargetDOTweenPath.DOPlay();
            break;

        case Modes.DOPlayBackwards:
            TargetDOTweenPath.DOPlayBackwards();
            break;

        case Modes.DOPlayForward:
            TargetDOTweenPath.DOPlayForward();
            break;

        case Modes.DOPause:
            TargetDOTweenPath.DOPause();
            break;

        case Modes.DOTogglePause:
            TargetDOTweenPath.DOTogglePause();
            break;

        case Modes.DORewind:
            TargetDOTweenPath.DORewind();
            break;

        case Modes.DORestart:
            TargetDOTweenPath.DORestart();
            break;

        case Modes.DOComplete:
            TargetDOTweenPath.DOComplete();
            break;

        case Modes.DOKill:
            TargetDOTweenPath.DOKill();
            break;
        }
    }