Last active
October 2, 2020 13:20
-
-
Save hanubeki/5ed0f3de8552763a9c25c1755cfb3ff3 to your computer and use it in GitHub Desktop.
pnによって違う値を返す関数のテスト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function string:switchPN(p1, p2) return self == "PlayerNumber_P1" and p1 or (self == "PlayerNumber_P2" and p2) end | |
-- pn:switchPN("いちぴー", "にぴー") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment