示例#1
0
 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();
     }
 }
示例#2
0
    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();
    }
示例#3
0
 private static void ClearSelected()
 {
     PlantMenuScript.MainInstance.CloseMenu();
     ChoosePotMenuScript.CloseStaticMenu();
     ComputerUIScript.MainInstance.CloseMenu();
 }