Добавил часы, уменьшил targetFps, поправил обращение к OpenHAB

This commit is contained in:
ftc
2021-03-15 22:49:34 +03:00
parent 6e63d6de99
commit 98da719fcc
6 changed files with 239 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Clock : MonoBehaviour
{
[SerializeField]
Text clockText;
void Update()
{
clockText.text = DateTime.Now.ToString("HH:mm:ss");
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4d3b0b8b91612a2468b673a47bf8c05c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+14
View File
@@ -0,0 +1,14 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FpsController : MonoBehaviour
{
[SerializeField]
int targetFps;
void Start()
{
Application.targetFrameRate = targetFps;
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cf383bdf7499e614aa25bf12ba238418
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: