25 lines
406 B
C#
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()
|
|
{
|
|
}
|
|
}
|