Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created June 30, 2018 08:08
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/29432378c365c9193e56c704f94c990b to your computer and use it in GitHub Desktop.
Save todorok1/29432378c365c9193e56c704f94c990b to your computer and use it in GitHub Desktop.
RequireComponentは自作スクリプトでも有効
public class RequiredCharacterStatus : MonoBehaviour {
// キャラクターのステータスを保持するクラス
public int maxHp = 100;
public int hp = 80;
public int atk = 50;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment