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