SetImageV.cs 419 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class SetImageV : MonoBehaviour
  6. {
  7. public Image image;
  8. public Image backGround;
  9. public Image selectImage;
  10. public void SetImage( Sprite sprite)
  11. {
  12. image.sprite = sprite;
  13. }
  14. public void SetBackGround( Sprite sprite)
  15. {
  16. backGround.sprite = sprite;
  17. }
  18. }