Пример #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>();
 }