CapersProject/Assets/02.Scripts/BlueWater/ShaderUnscaledTime.cs

18 lines
378 B
C#
Raw Normal View History

2024-11-19 13:48:41 +00:00
using System;
2025-02-10 02:13:46 +00:00
using DDD.Titles;
2024-11-19 06:57:50 +00:00
using UnityEngine;
2024-11-19 13:48:41 +00:00
using UnityEngine.UI;
2024-11-19 06:57:50 +00:00
public class ShaderUnscaledTime : MonoBehaviour
{
2024-11-19 13:48:41 +00:00
[SerializeField]
2024-11-19 14:19:54 +00:00
private TycoonTitle _tycoonTitle;
2024-11-19 06:57:50 +00:00
void Update()
{
2024-11-19 14:19:54 +00:00
if (_tycoonTitle.inkMaterialInstance != null)
2024-11-19 06:57:50 +00:00
{
2024-11-19 14:19:54 +00:00
_tycoonTitle.inkMaterialInstance.SetFloat("_CustomTime", Time.unscaledTime);
2024-11-19 06:57:50 +00:00
}
}
}