Created
June 13, 2018 08:57
-
-
Save todorok1/b059bd1b51d4824fab95a0f477f77523 to your computer and use it in GitHub Desktop.
RangeAttributeの使い方あれこれ
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
void Start () { | |
Debug.Log("hp / mp : " + hp + " / " + mp); | |
Debug.Log("hpとmp に128を足すよ"); | |
hp += 128; | |
mp += 128; | |
Debug.Log("hp / mp : " + hp + " / " + mp); | |
Debug.Log("hpとmp に256を足すよ"); | |
hp += 256; | |
mp += 256; | |
Debug.Log("hp / mp : " + hp + " / " + mp); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment