public Run ( |
||
bullet | The bullet to update this task against. | |
return | ERunStatus |
public override ERunStatus Run(Bullet bullet)
{
bullet.Speed += SpeedChange;
Duration -= 1.0f * bullet.TimeSpeed;
if (Duration <= 0.0f || startDuration <= 1)
{
TaskFinished = true;
return ERunStatus.End;
}
else
{
return ERunStatus.Continue;
}
}