本文整理汇总了C#中TaskList.push方法的典型用法代码示例。如果您正苦于以下问题:C# TaskList.push方法的具体用法?C# TaskList.push怎么用?C# TaskList.push使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TaskList
的用法示例。
在下文中一共展示了TaskList.push方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: begin
public override void begin(float length, int chapters, int paragraph)
{
time_ = 0.0f;
this.over_ = false;
GameManager.GetInstance ().road._speed = 0.001f;
TaskList tl = new TaskList ();
for (int i = 0; i < _sentence.Length; ++i) {
tl.push (new TaskPack(talkTask(_sentence[i])));
}
for (int i = 0; i < _talk.Length; ++i) {
if(_close[i]){
tl.push (_talk[i].goOutTask ());
}else{
tl.push (_talk[i].closePopTask ());
}
}
TaskManager.PushBack (tl, delegate {
this.over_ = true;
GameManager.GetInstance ().road._speed = 1.0f;
});
TaskManager.Run (tl);
}
示例2: talkTask
TaskPack.CreateTask talkTask(Sentence sentence)
{
return delegate {
VoxelTalkManager talk = this._talk[sentence.index];
if(!talk.isOpen()){
TaskList tl = new TaskList();
tl.push (talk.comeInTask());
tl.push (talk.popTask(sentence.talk));
return tl;
}else{
return talk.popTask(sentence.talk);
}
};
}
示例3: begin
public override void begin(float length, int chapters, int paragraph)
{
time_ = 0.0f;
this.over_ = false;
GameManager.GetInstance ().road._speed = 0.001f;
tl_ = new TaskList ();
tl_.push (_talk.comeInTask ());
for (int i = 0; i<_sentence.Length; ++i) {
tl_.push (_talk.popTask (_sentence[i]));
}
tl_.push (_talk.goOutTask ());
TaskManager.PushBack (tl_, delegate {
this.over_ = true;
_talk.close();
GameManager.GetInstance ().road._speed = 1.0f;
});
TaskManager.Run (tl_);
}