목록C# (36)
유니티3D 프로그래밍

ReadLine() using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study01 { class Program { static void Main(string[] args) { while(true) { Console.WriteLine("과일 이름을 입력하세요"); string input = Console.ReadLine(); Console.WriteLine("{0}을(를) 입력 하셨습니다.", input); if (input == "바나나") { Console.WriteLine("바나나는 파초과 파초속의 여러해살이 식물과 열매를 두..

1. 템플러와 지짐이 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study01 { class Program { static void Main(string[] args) { string templer = "템플러"; int templerMaxEnergy = 200; int templerEnergy = 10; int energyCharge = 10; string templerSkill = "지짐이"; int skillNeedEnergy = 75; Console.WriteLine("{0}가 생성되었습니다.", templer); C..

Char형 형변환 다양한 형태의 형변환을 테스트 해보고 실행되는 코드를 찾는다. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study01 { class Program { static void Main(string[] args) { //char Character = 'j'; //int integer = (int)Char.GetNumericValue(Character); //Console.WriteLine(integer); //-1 //char Character = 'j'; //int integer = int.Parse(Char..

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Study00 { class Program { enum Grade { Common, Uncommon, Rare, Legendery, Set } enum ItemType { ShortSword, Sword, Wand, Potion, Material, Jewel } enum GainType { Build, WorldDrop } enum ItemParts { Head, Leg, Arm, } static void Main(string[] args) { string itemName = "혈마..