Guest User

Untitled

a guest
May 19th, 2020
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.Playables;
  3. using Skatebirb.Gameplay;
  4.  
  5. namespace Skatebirb.Timeline
  6. {
  7. public class DialogAsset : PlayableAsset
  8. {
  9. public string dialogName;
  10.  
  11. public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
  12. {
  13. var playable = ScriptPlayable<DialogBehaviour>.Create(graph);
  14.  
  15. DialogBehaviour dialog = playable.GetBehaviour();
  16. dialog.dialogName = dialogName;
  17.  
  18. return playable;
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment