Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        RespawnHecho = false;
        CaidaAcido   = false;

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