all repos — RPG @ 502924ae35666f2d5ac541310b3e57f2e4fe70b4

Fully functional 3D turn based role playing game coded in C# and base Unity.

Assets/Scripts/Utility/Timer.cs (view raw)

 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class Timer : MonoBehaviour
 6{
 7    public float timer = 0f;
 8    public int seconds;
 9
10    void Update()
11    {
12        timer += Time.deltaTime;
13        //seconds = (int)timer % 60;
14    }
15}