Files
findthesource/Assets/Scripts/TurnManager.cs
2022-11-07 17:25:24 +01:00

29 lines
583 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TurnManager : MonoBehaviour
{
private Dice dice;
private Akciopont akciopont;
public int turnCounter = 1;
void Start()
{
dice = FindObjectOfType<Dice>();
akciopont = FindObjectOfType<Akciopont>();
}
public void nextTurn() {
dice.setLocked(false);
akciopont.resetAkciopont();
turnCounter++;
dice.hely1.sprite = null;
dice.hely2.sprite = null;
Debug.Log("kovetkezo kor " + turnCounter);
}
}