// Start is called before the first frame update void Start() { RespawnHecho = false; CaidaAcido = false; IAcheck = GameObject.FindGameObjectWithTag("IAcheck").GetComponent <IACheckpoint>(); transform.position = IAcheck.UltimoCheckpoint; }
private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(instance); } else { Destroy(gameObject); } }
// Start is called before the first frame update void Start() { IAcheck = GameObject.FindGameObjectWithTag("IAcheck").GetComponent <IACheckpoint>(); }