Danmaku_no_Kyojin.BulletEngine.BulletMLWait.Run C# (CSharp) Method

Run() public method

Run this task and all subtasks against a bullet This is called once a frame during runtime.
public Run ( Bullet bullet ) : ERunStatus
bullet Bullet The bullet to update this task against.
return ERunStatus
        public override ERunStatus Run(Bullet bullet)
        {
            Duration--;
            if (Duration >= 0)
            {
                return ERunStatus.Stop;
            }
            else
            {
                TaskFinished = true;
                return ERunStatus.End;
            }
        }