Beispiel #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag == "Character")
     {
         manager.AddCollectible(type);
         transform.DOMove(new Vector3(destination.transform.position.x, destination.transform.position.y, 0), 0.25f).OnComplete(Disappear);
     }
 }