Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created July 5, 2018 12:03
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/b54dceb2f34ec25505a19af1e6efd8ba to your computer and use it in GitHub Desktop.
Save todorok1/b54dceb2f34ec25505a19af1e6efd8ba to your computer and use it in GitHub Desktop.
HeaderAttributeを使ってフィールドを整理
public class HeaderCheck : MonoBehaviour {
public string playerName = "roto";
public int level = 41;
[Header("HPの設定項目")]
public int maxHp = 255;
public int hp = 127;
[Header("MPの設定項目")]
public int maxMp = 108;
public int mp = 87;
[Header("強さの設定項目")]
public int atk = 96;
public int def = 43;
public int speed = 74;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment