本文整理汇总了C#中Quest.SetQuest方法的典型用法代码示例。如果您正苦于以下问题:C# Quest.SetQuest方法的具体用法?C# Quest.SetQuest怎么用?C# Quest.SetQuest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Quest
的用法示例。
在下文中一共展示了Quest.SetQuest方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InstantQuest
//Questに必要な値を決めてクエストを生成する
public void InstantQuest()
{
TrialNumber++;
float evalnum = TrialNumber / 100.0f;
this._CurrentNumber = (int)(YakuNumberCurve.Evaluate(evalnum) * 100.0f + 5.0f + Random.Range(-2.0f,2.0f));
CurrentQuest = Instantiate(PrefabQuest)as GameObject;
CurrentQuestScript = CurrentQuest.GetComponent<Quest>();
CurrentQuestScript.SetQuest((float)5,this._CurrentNumber);
CurrentQuestScript.LifeEndCallBack += EndQuestLifeTime;
}
示例2: InstantQuest
//Questに必要な値を決めてクエストを生成する
public void InstantQuest()
{
if (ClearNum >= CurrentQuestLevel.NextCount) {
CurrentLevel += 1;
NextLevel (CurrentLevel);
}
_CurrentNumber = Random.Range (CurrentQuestLevel.Min, CurrentQuestLevel.Max);
CurrentQuestInfo.YakuNum = _CurrentNumber;
CurrentQuestInfo.QuestTime = CurrentQuestLevel.QuestTime;
CurrentQuest = Instantiate (PrefabQuest)as GameObject;
CurrentQuestScript = CurrentQuest.GetComponent<Quest> ();
CurrentQuestScript.SetQuest (CurrentQuestInfo);
CurrentQuestScript.LifeEndCallBack += EndQuestLifeTime;
ClearNum++;
}