void OnTriggerEnter2D(Collider2D col) { Tilt.SetYouWinToTrue(); if (col.name == "Goal") { Destroy(gameObject, .4f); Debug.Log("You Win!"); } }
void OnTriggerEnter2D(Collider2D col) { Tilt.SetYouWinToTrue(); }