강의

멘토링

커뮤니티

Inflearn Community Q&A

jupernova1177's profile image
jupernova1177

asked

[MMORPG Game Development Series with C# and Unity] Part 1: Introduction to Basic C# Programming

Create a TextRPG Player

강의 코드, 80번째 줄

Written on

·

311

1

안녕하세요.

강의를 보면서 하나하나 따라하고 있습니다.

헌데, 제 컴퓨터에서는 강의 코드 80번째 줄,

CreatePlayer(choice, out player);

에서 player에 빨간 줄이 쳐져 있고, 

CS0103 'player' 이름이 현재 컨텍스트에 없습니다.

로 보여집니다.

해서, 이것저것 해보다가

CreatePlayer(choice, out Player player); 로,

앞에 Player를 붙여주니 에러 없이 실행이 되던데요,

혹시 어떤 차이점이 있을까요? 

강의 정말 감사하게 잘 보고 있습니다.

고맙습니다. :)

PlayerC#

Answer 1

1

Jean K님의 프로필 이미지
Jean K
Questioner

아..  Player player; 라고 그 전에 선언을 했네요;; 

jupernova1177's profile image
jupernova1177

asked

Ask a question