Method group is Obsolete

IntegerMessage

class in UnityEngine.Networking.NetworkSystem

/

继承自:Networking.MessageBase

切换到手册
Obsolete

描述

Utility 类,用于发送只包含一个整数的简单网络消息。

using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.Networking.NetworkSystem;

public class Test { void SendValue(int value) { var msg = new IntegerMessage(value); NetworkServer.SendToAll(MsgType.Scene, msg); } }

继承的成员