using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
enum State
{
Idle, Move, Attack, Die
}
class Program
{
static void Main(string[] args)
{
String race = "Protoss";
int minerals = 100;
float time = 39.9f;
bool isAttack = true;
State eState = State.Attack;
Console.WriteLine("race: {0}", race);
Console.WriteLine("minerals: {0}", minerals);
Console.WriteLine("build time: {0}", time);
Console.WriteLine("isAttack: {0}", isAttack);
Console.WriteLine("state: {0}", eState);
}
}
}
C#/수업 내용