Skip to content

格式

typescript
Contract.Receive(...args)

所属类: Contract

描述

接收信息。

参数

参数名类型描述
...argsany参数

返回值

类型描述
void

代码示例

typescript
class TestRequest extends Contract{
    Exescute(msg: string): void {
        Debug.Log("client send :: ", msg);
    }

    Receive(msg: string): void {
        Debug.Log("client receive :: ", msg);
    }
}