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