本文整理汇总了C#中Sentence.Setup方法的典型用法代码示例。如果您正苦于以下问题:C# Sentence.Setup方法的具体用法?C# Sentence.Setup怎么用?C# Sentence.Setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sentence
的用法示例。
在下文中一共展示了Sentence.Setup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateSentence
// create a sentence from the hardcoded list
void CreateSentence(int i)
{
GameObject st = Instantiate(sentence, new Vector3(0f, 0f, 0f), Quaternion.identity) as GameObject;
currentSentence = st.GetComponent<Sentence>();
Challenge c = tests.Challenges [i];
currentSentence.Setup(c.Phrases[GameStateManager.NativeLang], c.Answer.key, c.Animation);
st.transform.SetParent(topBar);
st.transform.localPosition = new Vector3(0f, -20f);
//Starting the thinking bubble
PlayerControl pc = GameObject.FindWithTag("Player").GetComponent<PlayerControl>();
Vector3 vector = (Vector3)(GameObject.FindWithTag ("Player").transform.position + new Vector3 (0.25f,0.3f, 0));
pc.thinking(c.Answer.key, vector);
}