Last active
June 12, 2018 05:37
-
-
Save todorok1/fb8fe506cb97cae2a7dc21b97bb726e8 to your computer and use it in GitHub Desktop.
publicと[SerializeField]
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
public class AttributeChecker : MonoBehaviour { | |
// publicをつけてInspectorに表示する | |
public int hp; | |
// [SerializeField]だとprivateなままInspectorに表示できる | |
[SerializeField] | |
int mp; | |
// イカ、省略 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment