更新obi到7.1

This commit is contained in:
Bob.Song
2025-11-03 11:53:45 +08:00
parent d12e1bc495
commit 7cf7f545bc
1161 changed files with 158924 additions and 37802 deletions

View File

@@ -1,23 +1,30 @@
using UnityEngine;
public class Blinker : MonoBehaviour {
namespace Obi.Samples
{
public class Blinker : MonoBehaviour
{
public Color highlightColor;
public Color highlightColor;
private Renderer rend;
private Color original;
private Renderer rend;
private Color original;
void Awake(){
rend = GetComponent<Renderer>();
original = rend.material.color;
}
void Awake()
{
rend = GetComponent<Renderer>();
original = rend.material.color;
}
public void Blink(){
rend.material.color = highlightColor;
}
public void Blink()
{
rend.material.color = highlightColor;
}
void LateUpdate(){
rend.material.color += (original - rend.material.color)*Time.deltaTime*5;
}
void LateUpdate()
{
rend.material.color += (original - rend.material.color) * Time.deltaTime * 5;
}
}
}
}