Skip to content

Instantly share code, notes, and snippets.

@iammuho
Created October 30, 2022 13:42
Show Gist options
  • Save iammuho/55f672dcb4c9ab2aac12795beac91570 to your computer and use it in GitHub Desktop.
Save iammuho/55f672dcb4c9ab2aac12795beac91570 to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MyScript : MonoBehaviour
{
[SerializeField] GameObject item;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void OnMouseDown()
{
print("call");
item.SetActive(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment