VideoToggleItem.cs 350 B

123456789101112131415161718
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class VideoToggleItem : MonoBehaviour
  5. {
  6. int index;
  7. private void OnEnable()
  8. {
  9. index = this.GetComponentIndex();
  10. }
  11. public void choose(bool b)
  12. {
  13. if (b)
  14. ShiPingJianKongManager.Instance.chooseToggle(index);
  15. }
  16. }