123456789101112131415161718192021222324 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using SC.XR.Unity.Module_InputSystem;
- public class Module_TooltipMove : MonoBehaviour
- {
- private GameObject lable;
- private void Start()
- {
- lable = transform.Find("Lable").gameObject;
- }
- public void MoveLableEnable()
- {
- lable.GetComponent<BoxCollider>().enabled = true;
- lable.GetComponent<ManipulationHandler>().enabled = true;
- }
- public void MoveLableDisable()
- {
- Destroy(lable.GetComponent<ManipulationHandler>());
- Destroy(lable.GetComponent<NearInterationGrabbable>());
- lable.GetComponent<BoxCollider>().enabled = true;
- }
- }
|