Created
January 28, 2018 02:10
-
-
Save flushpot1125/a3a4b8aa016580f54ed8d6c498860770 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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