Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created June 13, 2018 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/b059bd1b51d4824fab95a0f477f77523 to your computer and use it in GitHub Desktop.
Save todorok1/b059bd1b51d4824fab95a0f477f77523 to your computer and use it in GitHub Desktop.
RangeAttributeの使い方あれこれ
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