本文整理汇总了C#中Conversation.getNext方法的典型用法代码示例。如果您正苦于以下问题:C# Conversation.getNext方法的具体用法?C# Conversation.getNext怎么用?C# Conversation.getNext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Conversation
的用法示例。
在下文中一共展示了Conversation.getNext方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: changeConversation
void changeConversation(Conversation next)
{
currentConversation.reset ();
currentConversation = next;
foreach (Button ans in answers) {
Destroy (ans.gameObject);
}
answers.Clear ();
nextConversations.Clear ();
currentMessage = currentConversation.getNext();
StartCoroutine (startScrolling());
isWaiting = false;
}
示例2: waitForAnim
IEnumerator waitForAnim(Animation anim)
{
anim.Play("UIBegin");
currentConversation = JSONMovieParser.createConversation(textPathName);
Texture2D texture = Resources.Load<Texture2D>(currentConversation.getImg());
image.GetComponent<Image>().sprite = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(.5f,.5f), 100);
currentMessage = currentConversation.getNext();
do
{
yield return null;
} while (anim.isPlaying);
nameGUI.text = currentConversation.getName();
image.enabled = true;
isTalking = true;
StartCoroutine (startScrolling());
}