本文整理汇总了C#中Quest.AddObjective方法的典型用法代码示例。如果您正苦于以下问题:C# Quest.AddObjective方法的具体用法?C# Quest.AddObjective怎么用?C# Quest.AddObjective使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Quest
的用法示例。
在下文中一共展示了Quest.AddObjective方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
// Use this for initialization
void Start () {
var q0 = new Quest("bed", "Wakey wakey eggs and bakey. Rise and shine!", true);
q0.AddObjective(new Objective("leaveBed"));
quests.Add(q0);
var q1 = new Quest("wakeup", "Clock is ringing, you should do something about that", true);
q1.AddObjective(new Objective("shootAlarm"));
quests.Add(q1);
var q2 = new Quest("shower", "Shower without your dad", false);
q2.AddObjective(new Objective("shower"));
quests.Add(q2);
var q4 = new Quest("bacon", "Bakin' bacon pancakes", false);
q4.AddObjective(new Objective("shootFridge"));
q4.AddObjective(new Objective("getBacon"));
q4.AddObjective(new Objective("putBaconOnOven"));
q4.AddObjective(new Objective("heatOven"));
q4.AddObjective(new Objective("fryBacon"));
quests.Add(q4);
var q5 = new Quest("car", "Get to work", false);
q5.completesLevel = true;
q5.AddObjective(new Objective("getInCar"));
quests.Add(q5);
player = FindObjectOfType<Player>();
TrapPlayer();
}