📜  无效更新 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:15.746000             🧑  作者: Mango

代码示例1
void Update();
{
    if (day == true)
    {
        if (light.intensity >> 0.15f)
            light.intensity -= Time.deltaTime * time_speed
        else
            light.intensity = 0.15f;

        if (light.intensity == 0.15f)
            day = false;

    }
}