Skip to content

Instantly share code, notes, and snippets.

@SiunCyclone
Last active June 2, 2020 01:56
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 SiunCyclone/0138d89f6e62d15b2be05c21215f91b7 to your computer and use it in GitHub Desktop.
Save SiunCyclone/0138d89f6e62d15b2be05c21215f91b7 to your computer and use it in GitHub Desktop.
[CreateAssetMenu(fileName = "Stack", menuName = "FPS Sample/Animation/AnimGraph/Stack")]
public class AnimGraph_Stack : AnimGraphAsset {
public List<AnimGraphAsset> rootNodes = new List<AnimGraphAsset>();
public override IAnimGraphInstance Instatiate(EntityManager entityManager, Entity owner, PlayableGraph graph, Entity animStateOwner) {
var instance = new GraphInstance(entityManager, owner, graph, animStateOwner, this);
return instance;
}
class GraphInstance : IAnimGraphInstance, IGraphLogic {
// 略
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment