1 Star 0 Fork 0

mamawhes/MyUnityManage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MyGameManager.cs 758 Bytes
一键复制 编辑 原始数据 按行查看 历史
mamawhes 提交于 2024-04-13 00:24 . first commit
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MyGameManager : MonoBehaviour
{
public static MyGameManager instance;
private double __clockCount = 0;
public double clockCount
{
get
{
return __clockCount;
}
}
public bool clockEable = true;
private void Awake()
{
instance = this;
}
// Start is called before the first frame update
void Start()
{
}
private void FixedUpdate()
{
if (this.clockEable)
{
this.__clockCount += 0.02f;
}
}
// Update is called once per frame
void Update()
{
//Debug.Log(this.__clockCount);
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/mamawhes/my-unity-manage.git
git@gitee.com:mamawhes/my-unity-manage.git
mamawhes
my-unity-manage
MyUnityManage
master

搜索帮助