private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else { Destroy(gameObject); } }
private void Start() { rl = GameObject.FindGameObjectWithTag("RL").GetComponent <RespawnLocator>(); }