Exemple #1
0
    private float GetInterval(Card card)
    {
        float interval = 0;

        if (card is AttackCard)
        {
            interval = TBL_GAME_SETTING.GetEntity(0).AttackCardTime;
        }
        else if (card is EnergyCard)
        {
            interval = TBL_GAME_SETTING.GetEntity(0).EnergyCardTime;
        }
        else if (card is GuardCard)
        {
            interval = TBL_GAME_SETTING.GetEntity(0).GuardCardTime;
        }
        else if (card is HealCard)
        {
            interval = TBL_GAME_SETTING.GetEntity(0).HealCardTime;
        }
        else if (card is MoveCard)
        {
            interval = TBL_GAME_SETTING.GetEntity(0).MoveCardTime;
        }
        return(interval);
    }
Exemple #2
0
 private void Awake()
 {
     slider          = GetComponent <Slider>();
     slider.maxValue = TBL_GAME_SETTING.GetEntity(0).CardSelectTime;
     slider.value    = slider.maxValue;
 }