小编Kai*_*des的帖子

不可调用成员“TalesOfMyroth()”不能像方法一样使用

namespace Tales_Of_Myroth
{
    public class TalesOfMyroth
    {
        static void Main(string[] args)
        {
            TalesOfMyroth();  //here is my error
        }

        private Jogador _jogador;

        public TalesOfMyroth()
        {
            _jogador = new Jogador();

            _jogador.VidaAtual = 50;
            _jogador.VidaMaxima = 50;
            _jogador.Ouro = 0;

            Console.WriteLine("Vida: " + _jogador.VidaAtual);

        }
    }
}
Run Code Online (Sandbox Code Playgroud)

我本来想为我刚刚开始的大学制作一个简单的文字游戏......有人可以帮助我吗?(代码中的某些内容是用葡萄牙语编写的)

c#

1
推荐指数
1
解决办法
7891
查看次数

标签 统计

c# ×1