// Factory method that generates a playable based on this asset
    public override Playable CreatePlayable(PlayableGraph graph, GameObject go)
    {
        // 新規追加
        TestPlayableBehaviour behaviour = new TestPlayableBehaviour();

        behaviour.otherObj = this.otherObj.Resolve(graph.GetResolver());
        behaviour.projObj  = this.projObj;

        return(ScriptPlayable <TestPlayableBehaviour> .Create(graph, behaviour));
    }
Esempio n. 2
0
    public override Playable CreatePlayable(PlayableGraph graph, GameObject go)
    {
        var behaviour = new TestPlayableBehaviour();

        behaviour.sceneObj = sceneObj.Resolve(graph.GetResolver());
        if (projectObj != null)
        {
            behaviour.projectObj = projectObj;
        }

        return(ScriptPlayable <TestPlayableBehaviour> .Create(graph, behaviour));
    }