init
This commit is contained in:
commit
a8c6025cd3
158 changed files with 86052 additions and 0 deletions
19
Assets/DelayedFlapToRestart.cs
Normal file
19
Assets/DelayedFlapToRestart.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue