33 lines
649 B
C#
33 lines
649 B
C#
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace BITFALL
|
||
|
{
|
||
|
public sealed class ServerRpc : System.Attribute{}
|
||
|
public sealed class ClientRpc : System.Attribute{}
|
||
|
public class ExampleService : MonoBehaviour
|
||
|
{
|
||
|
void Start()
|
||
|
{
|
||
|
EatItem();
|
||
|
|
||
|
//await xxx.Call(EtaItem);
|
||
|
//RpcEatitem;
|
||
|
}
|
||
|
[ServerRpc]
|
||
|
public void EatItem()
|
||
|
{
|
||
|
RpcEatItem();
|
||
|
//client.Rpc(RpcEatItem);
|
||
|
}
|
||
|
|
||
|
[ClientRpc]
|
||
|
public void RpcEatItem()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|