protected void OnAI(ControlEvents.AIEventArgs e)
        {
            aiEvnetHandler evnetHandler = RaiseAIEvent;

            if (evnetHandler != null)
            {
                evnetHandler.Invoke(this, e);
            }
        }
 /// <summary>
 /// Asked to run a sequence of its AI.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void ControlEventHandler(object sender, ControlEvents.AIEventArgs e)
 { //delgate
     timeSinceLastUpdate = e.TimeSinceLastUpdate;
     AI();
 }