private void OnTriggerEnter(Collider other)
 {
     pl = other.GetComponent <Vida>();
     if (pl != null)
     {
         //pl.spawnPoint = gameObject.transform;
         save.CheckPoint();
     }
 }
Beispiel #2
0
    private void OnTriggerEnter(Collider other)
    {
        pl = other.GetComponent <Vida>();

        if (pl != null)
        {
            pl.spawnPoint = spawnPoint;
            save.CheckPoint(spawnPoint.position);
        }
    }