示例#1
0
 void Start()
 {
     arduino = GameObject.FindGameObjectWithTag("Arduino").GetComponent <ArduinoManger>();
     if (instance == null)
     {
         instance = this;
     }
 }
示例#2
0
 private void Start()
 {
     pm      = gameObject.GetComponent <PlayerMovement>();
     arduino = GameObject.FindGameObjectWithTag("Arduino").GetComponent <ArduinoManger>();
 }
示例#3
0
 private void Start()
 {
     respawnPoint = transform.position;
     arduino      = GameObject.FindGameObjectWithTag("Arduino").GetComponent <ArduinoManger>();
 }