Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- namespace ExtendedButtons
- {
- public class Lantern : MonoBehaviour
- {
- public GameObject Myobj;
- public void OnClick()
- {
- if (Myobj.activeSelf)
- {
- Myobj.SetActive(true);
- }
- else
- {
- Myobj.SetActive(false);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement