Esempio n. 1
0
 protected override void OnTriggerEnter2D(Collider2D collision)
 {
     base.OnTriggerEnter2D(collision);
     if (collision.gameObject == player.gameObject)
     {
         player.SetRespawnPoint(this.transform.position);
         animator.Play("Saving");
     }
 }