WowieGameJam/Assets/DelayedFlapToRestart.cs
Gerard Gascón a8c6025cd3 init
2025-04-24 14:07:24 +02:00

19 lines
353 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DelayedFlapToRestart : MonoBehaviour {
public GameObject flapToRestart;
public int delay = 1;
void OnEnable () {
Invoke("EnableFlapToRestart", delay);
}
void EnableFlapToRestart()
{
flapToRestart.SetActive(true);
}
}