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