CC_Thumb.cs 563 B

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. namespace SoftKitty.MasterCharacterCreator
  6. {
  7. public class CC_Thumb : MonoBehaviour
  8. {
  9. public int MyID;
  10. public CharacterCusSliders MainScript;
  11. public GameObject Check;
  12. public RawImage Icon;
  13. private void Update()
  14. {
  15. Check.SetActive(MainScript.SelThumb==MyID);
  16. }
  17. public void Click()
  18. {
  19. MainScript.ThumbSelect(MyID);
  20. }
  21. }
  22. }