public static void ToggleFunction(bool toggleValue) { if (toggleValue) { // CameraMaskModeScript.MainInstance.CurrentMaskMode = CameraMaskModeScript.MaskMode.PotSpots; CameraMaskModeScript.SetMaskModeStatic(CameraMaskModeScript.MaskMode.PotSpots); } else { // CameraMaskModeScript.MainInstance.CurrentMaskMode = CameraMaskModeScript.MaskMode.Plants; CameraMaskModeScript.SetMaskModeStatic(CameraMaskModeScript.MaskMode.Plants); ChoosePotMenuScript.CloseStaticMenu(); } }
public void InspectPot(ClickPotScript pot) { ChoosePotMenuScript.CloseStaticMenu(); if (InspectFadePanel != null) { InspectFadePanel.StartFadeOut(); } currentPot = pot; SetObject(currentPot); gameObject.SetActive(true); ChoosePotMenuScript.MainInstance.CloseMenu(); InventoryMenuScript.MainInstance.CloseMenu(); OnOpenMenuAction.Invoke(); UpdateUI(); }
private static void ClearSelected() { PlantMenuScript.MainInstance.CloseMenu(); ChoosePotMenuScript.CloseStaticMenu(); ComputerUIScript.MainInstance.CloseMenu(); }