0% found this document useful (0 votes)
16 views1 page

MenuOpener Cs

Uploaded by

b65dxy4nx2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

MenuOpener Cs

Uploaded by

b65dxy4nx2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

using System.

Collections;
using System.Collections.Generic;
using UnityEngine;
using easyInputs;

public class MenuOpener : MonoBehaviour


{
//||=============================================||
//|| THIS WAS MADE BY CYPRUS471 ON DISCORD! ||
//|| REMOVE THIS IF YOU ARE A SKIDDER! ||
//|| MUST HAVE EASYINPUTS FOR THIS TO WORK ||
//||=============================================||

// Public

[Header("<=======================>")]
[Header("| CY, PERSONAL OPEN MENU |")]
[Header("<=======================>")]
[Header("(Made By Cy)")]

[Header("If You Put A Menu On The Left Hand Make The Box Left")]
[Header("If You Put A Menu On The Right Hand Make The Box Right")]

[Header("Put Your Menu Here That You Want To Open")]


public GameObject MenuThatYouWantToOpen;

[Header("Put A Hand To Open The Menu")]


public EasyHand Hand;

// Private

void Start()
{
MenuThatYouWantToOpen.SetActive(false);
}

void Update()
{
if (EasyInputs.GetPrimaryButtonDown(Hand))
{
MenuThatYouWantToOpen.SetActive(true);
}

else
{
MenuThatYouWantToOpen.SetActive(false);
}
}
}

You might also like