private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else { Destroy(gameObject); } }
// Start is called before the first frame update void Start() { sc = GameObject.FindGameObjectWithTag("CheckManage").GetComponent <SpawnChecker>(); transform.position = sc.lastCheckPointPos; }
// Start is called before the first frame update void Start() { SC = GameObject.FindGameObjectWithTag("CheckManage").GetComponent <SpawnChecker>(); }