// *********************************************************************** // Assembly : Unity // Author : Kimch // Created : // // Last Modified By : Kimch // Last Modified On : // *********************************************************************** // // // *********************************************************************** using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(Image))] public class KUIGroupImage : MonoBehaviour { public Sprite[] imageGroup; #region Method public void ShowImage(int index) { if (imageGroup != null && imageGroup.Length > 0) { if (index >= 0 && index < imageGroup.Length) { GetComponent().overrideSprite = imageGroup[index]; } } } #endregion }