15 lines
289 B
C#
15 lines
289 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace MenuSystem {
|
|
public class HideMeIf : MonoBehaviour {
|
|
public SaveHandler saveHandler;
|
|
|
|
void OnEnable() {
|
|
if (!saveHandler.saveMenuAvailable) {
|
|
gameObject.SetActive(false);
|
|
}
|
|
}
|
|
}
|
|
} |