0

私はテキスト アドベンチャー ゲームを作成しており、プレイヤーが使用できるコマンドを含むこれらの定数があります。例えば:

const string ConScenChoiceOne = "hit monkey talk to monkey suicide go inside";
string conchoice1;  
Console.WriteLine("You arrive at a temple dedicated to the monkey god.");
Console.WriteLine("Outside is a monkey, presumably guarding the place.");
Console.WriteLine("What do you do?");  
Console.Write(">");  
conchoice1 = Console.ReadLine();  
if (conchoice1.Contains("hit monkey")) 

「変数が使用されていない」ことをなくす方法はありますか? 定数なので編集できません。

4

1 に答える 1