protected void AddAIFunction(float timer, ai_function function) { if (ai_timer >= 0) { ai_timer = timer; } AI_QUEUED_STATES.Push(new ai_behaviour(timer, function)); }
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)); }
public ai_behaviour(float timer, ai_function func) { this.func = func; this.timer = timer; }