CS0120:访问非静态成员`UnityEngine.Rigidbody2D.AddForce(UnityEngine.Vector2,UnityEngine.ForceMode2D)'需要对象引用。

时间:2015-07-03 14:24:43

标签: c# unity3d

这是我的错误!

  

错误CS0120:访问非静态需要对象引用   成员`UnityEngine.Rigidbody2D.AddForce(UnityEngine.Vector2,   UnityEngine.ForceMode2D)'

请帮助我!

Rigidbody2D..AddForce(new Vector2 (jumpDirection*PlayerJumpForceHorizontal,PlayerJumpForceVertical));

0 个答案:

没有答案