@@ -28,6 +28,9 @@ namespace ReallifeGamemode.Server.Util
|
|||||||
|
|
||||||
public static void SyncAnimation(this Player player, List<string> animations)
|
public static void SyncAnimation(this Player player, List<string> animations)
|
||||||
{
|
{
|
||||||
|
if (animations.Count is 0)
|
||||||
|
return;
|
||||||
|
|
||||||
string animationName = animations.ElementAt(0);
|
string animationName = animations.ElementAt(0);
|
||||||
List<string> nextAnimations = animations.Skip(1).ToList();
|
List<string> nextAnimations = animations.Skip(1).ToList();
|
||||||
player.SyncAnimation(animationName);
|
player.SyncAnimation(animationName);
|
||||||
|
|||||||
Reference in New Issue
Block a user