Files
2026-05-24 12:14:04 +02:00

25 lines
406 B
C#

using System;
using UnityEngine;
[Serializable]
public class characteranimations : MonoBehaviour
{
public GameObject Player;
public virtual void Update()
{
if (Input.GetAxis("Vertical") != 0f)
{
GetComponent<NetworkView>().RPC("walking", RPCMode.All, Player.name);
}
else
{
GetComponent<NetworkView>().RPC("idle", RPCMode.All, Player.name);
}
}
public virtual void Main()
{
}
}