7 lines
160 B
C#
7 lines
160 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class ObjOff : MonoBehaviour
|
||
|
|
{
|
||
|
|
private void OnEnable() { Invoke("Off", 1.5f); }
|
||
|
|
void Off() { gameObject.SetActive(false); }
|
||
|
|
}
|