private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else { Destroy(gameObject); } }
private void Start() { cp = GameObject.FindGameObjectWithTag("CP").GetComponent <ChangeCheckPoint>(); transform.position = cp.lastCheckPoint; }
private void Start() { cp = GameObject.FindGameObjectWithTag("CP").GetComponent <ChangeCheckPoint>(); }