要件
- 「RHS」と「LHS」のeditableの整数を定義する
- ゲーム開始すると「足す / 引く / かける」の計算をログで表示する
必要な機能
確認する
# Writes `Message` to a dedicated `Print` log while displaying it in `Color` on the client screen for `Duration` seconds. By default, `Color` is `NamedColors.White` and `Duration` is `2.0` seconds.
Print<native><public>(Message:string, ?Duration:float = external {}, ?Color:color = external {})<transacts>:void回答
回答を見る
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
simple_math_device := class(creative_device):
@editable
RHS:int = 0
@editable
LHS:int = 0
OnBegin<override>()<suspends>:void=
Print("RHS + LHS = {RHS + LHS}")
Print("RHS - LHS = {RHS - LHS}")
Print("RHS * LHS = {RHS * LHS}")