示例#1
0
 void Start()
 {
     commanderInput = GetComponent <CommanderInput>();
 }
 void Start()
 {
     gameObject.GetComponent <Button>().onClick.AddListener(TaskOnClick);
     commanderInput = GetComponentInParent <CommanderInput>();
 }