FocusItem.cs 243 B

12345678910111213141516
  1. using UnityEngine;
  2. public class FocusItem : MonoBehaviour
  3. {
  4. public GameObject FrameObj;
  5. public void OnEnter()
  6. {
  7. FrameObj.SetActive(true);
  8. }
  9. public void OnOut()
  10. {
  11. FrameObj.SetActive(false);
  12. }
  13. }