void OnTriggerEnter2D(Collider2D col) { queColor = panda.getColor(); //si es true es rojo Debug.Log(queColor); if (col.gameObject.tag == "Player") { if (transform.position.y < col.transform.position.y && queColor == true && regular == false) { panda.EnemyJump(); score.scoreValue += 100; Destroy(gameObject); } else if (transform.position.y < col.transform.position.y && queColor == false && regular == true) { panda.EnemyJump(); score.scoreValue += 100; Destroy(gameObject); } else { panda.EnemyKnockBack(transform.position.x); } } }