コード例 #1
0
 protected void AddAIFunction(float timer, ai_function function)
 {
     if (ai_timer >= 0)
     {
         ai_timer = timer;
     }
     AI_QUEUED_STATES.Push(new ai_behaviour(timer, function));
 }
コード例 #2
0
 public void SwapAIFunction(float timer, ai_function function)
 {
     if (ai_timer >= 0)
     {
         ai_timer = timer;
     }
     AI_QUEUED_STATES.Pop();
     AI_QUEUED_STATES.Push(new ai_behaviour(timer, function));
 }
コード例 #3
0
 public ai_behaviour(float timer, ai_function func)
 {
     this.func  = func;
     this.timer = timer;
 }