C# 求统一体变量

C# 求统一体变量,c#,unity3d,C#,Unity3d,我试图在unity中创建一个跳转脚本,但我总是遇到这个错误 Assets\JumpScript.cs(8,6): error CS0501: 'JumpScript.Start()' must declare a body because it is not marked abstract, extern, or partial 这是我的代码: 使用系统集合; 使用System.Collections.Generic; 使用UnityEngine; 公共类JumpScript:MonoBeha

我试图在unity中创建一个跳转脚本,但我总是遇到这个错误

Assets\JumpScript.cs(8,6): error CS0501: 'JumpScript.Start()' must declare a body because it is not marked abstract, extern, or partial
这是我的代码:
使用系统集合;
使用System.Collections.Generic;
使用UnityEngine;
公共类JumpScript:MonoBehavior
{
void Start();
无效更新(){
if(Input.GetKeyDown(KeyCode.Space)){
GetComponent().AddForce(Vector3.up*1000);
}
}
}
只需更改

void Start();


这回答了你的问题吗?
void Start();
void Start()
{

}