Open-sourced some code
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user