You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
Update for combat netcode
This commit is contained in:
@@ -34,6 +34,16 @@ public class DemonicsAnimator : MonoBehaviour
|
||||
}
|
||||
return maxFrames;
|
||||
}
|
||||
public static int GetMaxAnimationFrames(AnimationSO animation, string name = "Idle")
|
||||
{
|
||||
int maxFrames = 0;
|
||||
int group = animation.GetGroupId(name);
|
||||
for (int i = 0; i < animation.GetGroup(group).animationCel.Count; i++)
|
||||
{
|
||||
maxFrames += animation.GetGroup(group).animationCel[i].frames;
|
||||
}
|
||||
return maxFrames;
|
||||
}
|
||||
|
||||
public virtual void SetAnimation(string name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user