void Start()
 {
     rb         = GetComponent <Rigidbody2D>();
     _transform = GetComponent <Transform>();
     Destroy(this.gameObject, 1);
     puntajeCoins = FindObjectOfType <PuntajeController>();
     Debug.Log(puntajeCoins.GetPoints());
 }
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (collision.gameObject.tag == "Zombie")
     {
         Destroy(this.gameObject, 0);
         puntajeCoins.AddPoints(10);
         Debug.Log(puntajeCoins.GetPoints());
     }
 }
    // Start is called before the first frame update
    void Start()
    {
        rb         = GetComponent <Rigidbody2D>();
        animator   = GetComponent <Animator>();
        sr         = GetComponent <SpriteRenderer>();
        _transform = GetComponent <Transform>();


        Debug.Log(puntajeObject.GetPoints());
    }
    private void OnCollisionEnter2D(Collision2D col)
    {
        if (col.gameObject.tag == "kunai")
        {
            Destroy(gameObject);
            Destroy(col.gameObject);

            puntajeController.AddPoints(10);
            Debug.Log(puntajeController.GetPoints());
        }
    }
 // Start is called before the first frame update
 void Start()
 {
     rb = GetComponent <Rigidbody2D>();
     puntajeController = FindObjectOfType <PuntajeController>();
     Debug.Log(puntajeController.GetPoints());
 }