PlayerRemovedEvent functionLearn technical details about the API for the PlayerRemovedEvent function in Verse.
公式ドキュメント
Custom Round LogicLearn how to save information that persists across rounds and reset the persistent data when the multi-round game ends or a player leaves the session, u…
プレイヤーの途中退出時に実行するメソッドの作成
画面に「A Player Removed!」と表示する。
OnPlayerRemoved(InPlayer:player):void =
Print("A Player Removed!")
OnBegin<override>()<suspends>:void=
GetPlayspace().PlayerAddedEvent().Subscribe(OnPlayerAdded)
GetPlayspace().PlayerRemovedEvent().Subscribe(OnPlayerRemoved)
OnPlayerAdded(InPlayer:player):void =
Print("A New Player Joined!")
OnPlayerRemoved(InPlayer:player):void =
Print("A Player Removed!")
コメント