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