格式
typescript
Contract.Send(type, args)所属类: Contract
描述
发送一个派生于Contract的对象。
参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| type | T | 派生于Contract的对象 |
| args | Parameters | 参数 |
返回值
| 类型 | 描述 |
|---|---|
void |
代码示例
typescript
class TestRequest extends Contract{
Exescute(msg: string): void {
Debug.Log("client send :: ", msg);
this.Send(TestRequest, msg);
}
Receive(msg: string): void {
Debug.Log("client receive :: ", msg);
}
}