Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.Playables;
- using Skatebirb.Gameplay;
- namespace Skatebirb.Timeline
- {
- public class DialogAsset : PlayableAsset
- {
- public string dialogName;
- public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
- {
- var playable = ScriptPlayable<DialogBehaviour>.Create(graph);
- DialogBehaviour dialog = playable.GetBehaviour();
- dialog.dialogName = dialogName;
- return playable;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment