Advertisement
Guest User

Example Script

a guest
Jan 22nd, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using RogoDigital.LipSync;
  4.  
  5. public class TestScript : MonoBehaviour
  6. {
  7.     public LipSync lipsyncComponent;
  8.     public LipSyncData lipsyncData;
  9.    
  10.     private void Update ()
  11.     {
  12.         if(Input.GetKeyUp(KeyCode.Space))
  13.         {
  14.             lipsyncComponent.Play(lipsyncData);
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement