概要
方法
向输出打印红色消息,前缀为 "TestService:" .
如果条件为真,打印;否则打印警告。
属性
方法
Warn
()
如果条件为真,打印;否则打印警告。
参数
默认值:""
返回
()
代码示例
This code would print Warning: this action is invalid to the output, in yellow text.
FunctionalTest:Warn1
local TestService = game:GetService("TestService")
TestService:Warn(false, "this action is invalid")