Example #1
0
    void OnEnable()
    {
        Debug.Log("time stage enabled");
        _chosenCard = Math.RandomElementOfList(cards);

        Debug.Log("chosen card:" + _chosenCard.name, _chosenCard);

        clock.hour   = _chosenCard.hour;
        clock.minute = _chosenCard.minute;
        clock.ApplyTime();
    }