Beispiel #1
0
        protected override Status OnTaskUpdate(StratusAgent agent)
        {
            // Update the progress timer.
            bool isFinished = timer.Update(Time.deltaTime);

            // Update the action
            if (!isFinished)
            {
                var status = this.OnTimedActionUpdate(agent);
                return(status);
                //if (status != Status.Success)
                //  return Status.Running;
            }

            // If the timer has finished, end the action
            return(Status.Success);
        }