if (_rigidbody.velocity.y >= 0)
{
gameObject.GetComponent<SpriteRenderer>().sprite = _raisingSprite;
}
else
{
gameObject.GetComponent<SpriteRenderer>().sprite = _fallSprite;
}
void Update()
{
if (Input.GetMouseButtonDown(0))
{
Jump();
}
if (!_isAlive && transform.position.y <= -4)
{
SceneManager.LoadScene("level_1");
}