Skip to content

Instantly share code, notes, and snippets.

@hanubeki
Last active October 2, 2020 13:20
Show Gist options
  • Save hanubeki/5ed0f3de8552763a9c25c1755cfb3ff3 to your computer and use it in GitHub Desktop.
Save hanubeki/5ed0f3de8552763a9c25c1755cfb3ff3 to your computer and use it in GitHub Desktop.
pnによって違う値を返す関数のテスト
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