public void OnTriggerEnter2D(Collider2D coll) { if (coll.tag == "Player") { destroy(); cameramove.HitObstacle(); statemanager.LostLife(); } }