PlayerController

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerController : MonoBehaviour
{
	Rigidbody2D rigidbody2D;

	// Start is called before the first frame update
	void Start()
    {
		rigidbody2D = GetComponent<Rigidbody2D>();
	}

	private bool isJumpRequest;

	void Update()
	{
		if (Input.GetMouseButtonDown(0)) {
			isJumpRequest = true;
		}
	}

	public float power = 2;

	void FixedUpdate()
	{
		if (isJumpRequest) {
			isJumpRequest = false;
			rigidbody2D.velocity = Vector3.up * power;
		}
	}
}