using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Person : MonoBehaviour
{
[HideInInspector]
public int age;//这个在脚本面板上会隐藏
[SerializeField]
private string firstName;//这个在脚本面板上会出现
[Header("Body Param")]
public float height;//身高
public float weight;//体重
public float waistline;//腰围
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
结果: