﻿using AsmodeeDigital.PlayReal.Plugin.Utils;
using UnityEngine;

namespace AsmodeeDigital.PlayReal.Samples.Domain.Game
{
    /// <summary>
    /// One dice in the game
    /// </summary>
    public class Dice : MonoBehaviour
    {
        /// <summary>
        /// Script that rotate the dice object
        /// </summary>
        public AutoRotation AutoRotation;

        /// <summary>
        /// Animator that handle the selection animation
        /// </summary>
        public Animator Animator;

        /// <summary>
        /// Index of the dice
        /// </summary>
        public int Index = 0;

        /// <summary>
        /// Selection state of the dice
        /// </summary>
        public bool Selected = false;
    }
}
