Beispiel #1
0
 public virtual void Update()
 {
     if (Input.GetKeyDown(KeyCode.Alpha1))
     {
         U_Timeline.Play(director, speed);
     }
     if (Input.GetKeyDown(KeyCode.Alpha2))
     {
         U_Timeline.Pause(director);
     }
     if (Input.GetKeyDown(KeyCode.Alpha3))
     {
         U_Timeline.Resume(director);
     }
     if (Input.GetKeyDown(KeyCode.Alpha4))
     {
         U_Timeline.Stop(director);
     }
     if (Input.GetKeyDown(KeyCode.Alpha5))
     {
         Debug.Log("开始倒放");
         U_Timeline.Rewind(director, 2);
     }
 }
Beispiel #2
0
 public void Pause()
 {
     U_Timeline.Pause(director);
 }