55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
//********************************************************//
|
|
// //
|
|
// Copyright © All rights reserved. MyNameIsVoo. 2020. //
|
|
// //
|
|
// REPRODUCTION FORBIDEN //
|
|
// //
|
|
//********************************************************//
|
|
|
|
using UnityEngine;
|
|
|
|
using ICWM.HelperSystem;
|
|
|
|
namespace ICWM
|
|
{
|
|
namespace MenuSystem
|
|
{
|
|
public class HelperMenu : MonoBehaviour
|
|
{
|
|
[SerializeField] private GameObject TextInventory;
|
|
[SerializeField] private GameObject TextModding;
|
|
[SerializeField] private GameObject TextToolTipModding;
|
|
|
|
private void Start()
|
|
{
|
|
TextModding.SetActive(false);
|
|
TextInventory.SetActive(false);
|
|
TextToolTipModding.SetActive(false);
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
if (ModdingSystem.instance.isActiveModding)
|
|
{
|
|
TextModding.SetActive(true);
|
|
|
|
if (InventoryBase.instance.toolTip.IsModdingToolTip && InventoryBase.instance.toolTip.isActiveRaycastHit)
|
|
TextToolTipModding.SetActive(true);
|
|
else
|
|
TextToolTipModding.SetActive(false);
|
|
}
|
|
else
|
|
{
|
|
TextModding.SetActive(false);
|
|
TextToolTipModding.SetActive(false);
|
|
}
|
|
|
|
if (InventoryBase.instance.isActive && !ModdingSystem.instance.isActiveModding)
|
|
TextInventory.SetActive(true);
|
|
else
|
|
TextInventory.SetActive(false);
|
|
}
|
|
}
|
|
}
|
|
}
|