Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Demo_Playback : MonoBehaviour {
- GameObject CAT;
- // Use this for initialization
- void Start ()
- {
- CAT = GameObject.Find("C.A.T");
- }
- // Update is called once per frame
- void Update ()
- {
- if (CAT != null)
- {
- if (Input.GetKeyDown(KeyCode.Space))
- {
- CAT.transform.GetChild(0).GetComponent<CAT_LayerContents>( ).PlayAndStopAtIndex(0, 3, .8f);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement