Esempio n. 1
0
    public override ActionResult Execute(RAIN.Core.AI ai)
    {
        ActionResult isDone = ActionResult.SUCCESS;

        if (m_Angle < 360f)
        {
            isDone = ActionResult.RUNNING;
            float angleInc = ai.DeltaTime * 40.0f;
            m_TurretController.TurnTurret(angleInc);
            m_Angle += angleInc;
        }
        return(isDone);
    }