Initial. Added files

This commit is contained in:
Andrey Gumirov
2022-04-12 11:54:05 +07:00
parent 19900f6446
commit 8aa8e3d79b
254 changed files with 44750 additions and 0 deletions

View File

@ -0,0 +1,26 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TimeManager : MonoBehaviour
{
public static TimeManager instance = null;
public float CurrentTime;
void Start()
{
if (instance == null)
{
instance = this;
instance.CurrentTime = 0f;
}
else
{
Debug.LogError("Only one Instance");
Destroy(gameObject);
}
}
void Update()
{
CurrentTime += Time.deltaTime;
}
}