-1

Is there a way to destroy an entity after a predefined time limit exceeds.? I want to destroy a ship when it's lifetime(measured in seconds) exceeds. thanks.

Sudheera
  • 1,727
  • 1
  • 12
  • 28

1 Answers1

0

OK I found something, the delta value we get as a parameter in update method is the time (in miliseconds) passed since the last call to update method. so we can keep adding it to a variable until the life limit reach.

Sudheera
  • 1,727
  • 1
  • 12
  • 28