Line 15,
if (gameObject.tag == "Player")
should be
if (collision.gameObject.tag == "Player")
You are checking if the Platform itself has the Player tag.
↧