C#およびプログラミング全般に新しく、エラーが発生していますタイトルボックス)私はこのコードを実行すると:Help with Error C#:静的でないフィールド、メソッド、またはプロパティにオブジェクト参照が必要です。RpgTutorial.Character.Swordsmanship
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace RpgTutorial
{
public class HeroSkills : Character
{
public int Skill()
{
if (Hero.Swordsmanship = 10)
{
}
}
}
}
を今、私は剣術への参照を作成する必要があります知っているが、私はそれをどのように正確にしますか?何か助けてくれてありがとう!