using UnityEngine; namespace YachtDice.Dice { /// /// Стандартный дайс с настраиваемыми значениями граней. /// По умолчанию — классический d6 (1-6). /// [CreateAssetMenu(fileName = "StandardDice", menuName = "YachtDice/Dice/Standard Dice")] <<<<<<<< HEAD:Assets/Scripts/Dice/StandardDiсe.cs public class StandardDiсe : DiсeDefinition ======== public class StandardDiceSO : DiceDefinitionSO >>>>>>>> claude/vibrant-tereshkova:Assets/Scripts/Dice/StandardDiceSO.cs { [Header("Configuration")] [SerializeField] private int[] faceValues = { 1, 2, 3, 4, 5, 6 }; public override int FaceCount => faceValues.Length; public override int[] GetFaceValues() { int[] copy = new int[faceValues.Length]; System.Array.Copy(faceValues, copy, faceValues.Length); return copy; } #if UNITY_EDITOR <<<<<<<< HEAD:Assets/Scripts/Dice/StandardDiсe.cs public static StandardDiсe CreateStandardD6ForTest() { var so = CreateForTest("standard_d6", "Стандартный d6"); ======== public static StandardDiceSO CreateStandardD6ForTest() { var so = CreateForTest("standard_d6", "Стандартный d6"); >>>>>>>> claude/vibrant-tereshkova:Assets/Scripts/Dice/StandardDiceSO.cs so.faceValues = new[] { 1, 2, 3, 4, 5, 6 }; return so; } #endif } }