public override void OnCollisionStay2D(Collision2D other) { if (other.collider.name == "Player") { platformGenerator.onBlackPlatfromTouched(timeForBlackEffect); FindObjectOfType <PlayerControl>().setDefJumpForce(); } }