MVC - Fix Error - Cannot convert method group 'LabelFor' to non delegate type 'object'

preview_player
Показать описание
Error CS0428 Cannot convert method group 'LabelFor' to non-delegate type 'object'. Did you intend to invoke the method?
Compiler Error Message: CS1503: Argument 1: cannot convert from 'method group' to 'HelperResult'

More
Рекомендации по теме
Комментарии
Автор

cannot convert method group 'isgrounded' to non-delegate type bool


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

public class Jump : MonoBehaviour
{
public float jumpForce;
public LayerMask whatIsGround;
public Transform groundPosition;
public bool Grounded = false;

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

void Update()
{
if
{
jump();
}
}
// Update is called once per frame

private bool isGrounded ()
{

if (Physics2D.OverlapCircle(groundPosition.position, 0.3f, whatIsGround))
{
return true;

}else
{


return false;}
}
void jump()
{
if (isGrounded)
{
return;
}else
{

rb.AddForce(new Vector2(0f, jumpForce), ForceMode2D.Impulse);}
}
}

jeetkumar
visit shbcf.ru