Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class ActivatorScript : MonoBehaviour {
- public GameObject activateMe;
- float activateDelay = 0.5f;
- void Start () {
- activateMe.SetActive(false);
- }
- void Update () {
- if (activateDelay > 0f) {
- activateDelay = activateDelay - Time.deltaTime;
- if (activateDelay <= 0f) {
- activateMe.SetActive(true);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement