using System.Collections; using System.Collections.Generic; using UnityEngine; namespace TON { // Model [System.Serializable] public class RoulettePieceData { public Sprite icon; // 아이콘 이미지 파일 public string description; // 이름, 속성 등의 정보 // 3개의 아이템 등장 확률(chance)이 100, 60, 40이면 // 등장확률의 합은 200. 100/200 = 50%, 60/200 = 30%, 40/200 = 20% [Range(1, 100)] public int chance = 100; // 등장 확률 [HideInInspector] public int index; // 아이템 순번 [HideInInspector] public int weight; // 가중치 } }