TestUIManage.cs 351 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.EventSystems;
  5. public class TestUIManage : MonoBehaviour, IPointerEnterHandler
  6. {
  7. public TestRotObject rotObject;
  8. public bool state;
  9. public void OnPointerEnter(PointerEventData eventData)
  10. {
  11. rotObject.RotObject(state);
  12. }
  13. }