📅  最后修改于: 2022-03-11 14:48:52.305000             🧑  作者: Mango
代码示例1
SomeScript script = GetComponent();
// alternatively, just make it a field:
[SerializeField] protected SomeScript script;