Created
August 19, 2024 14:50
-
-
Save Akadeax/e4ffeccaf46c43f076736661d40fa3a6 to your computer and use it in GitHub Desktop.
PDAnimatorState Template
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
[CreateAssetMenu(menuName = "PD/")] | |
public class XStateData : PDAnimatorStateData | |
{ | |
//[Header("Animations")] | |
public override PDAnimatorState ConstructState(PDAnimator animator) | |
{ | |
return new XState(stateName, this, animator); | |
} | |
} | |
public class XState : PDAnimatorState | |
{ | |
new XStateData data; | |
PDAnimator animator; | |
public XState(string name, PDAnimatorStateData data, PDAnimator animator) : base(name, data) | |
{ | |
this.data = data as XStateData; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment