Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created January 28, 2018 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/a3a4b8aa016580f54ed8d6c498860770 to your computer and use it in GitHub Desktop.
Save flushpot1125/a3a4b8aa016580f54ed8d6c498860770 to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;
[System.Serializable]
public class donut_Asset : PlayableAsset
{
// Factory method that generates a playable based on this asset
public override Playable CreatePlayable(PlayableGraph graph, GameObject go) {
donut_behaviour db = new donut_behaviour();//新規追加
return ScriptPlayable<donut_behaviour>.Create (graph, db);//新規追加
//return Playable.Create(graph); //ここはテンプレートにあるが削除する
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment