3 using System.Collections.Generic;
 
   12 [AddComponentMenu(
"Liberi/Time Limit")]
 
   13 [Script(ScriptRole.Logic)]
 
   16     public float Duration;
 
   21             StartCoroutine(WaitForDespawn());
 
   24     IEnumerator WaitForDespawn()
 
   26         yield 
return new WaitForSeconds(Duration);
 
static void Despawn(GameObject go)
Despawn the given object. 
 
A component that automatically despawns the object after n seconds. 
 
This class server two main functions: 1) As a MonoBehaviour, it allows for network synchronization of...