Unity. Function call after a certain period of time <p>How can I make an object invisible (or just delete) after a certain period of time? Use NGUI.</p> <p>My example (for changes):</p> <pre><code>public class scriptFlashingPressStart : MonoBehaviour { public GameObject off_Logo; public float dead_logo = 1.5f; void OffLogo() { off_Logo.SetActive(false); } //function onclick button //remove item after a certain time after pressing ??? void press_start() { InvokeRepeating("OffLogo", dead_logo , ...); } } </code></pre>