后处理+FEEL完全改进
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SpriteShadersUltimate
|
||||
{
|
||||
[AddComponentMenu("Sprite Shaders Ultimate/Utility/Unscaled Time SSU")]
|
||||
[ExecuteAlways]
|
||||
public class UnscaledTimeSSU : MonoBehaviour
|
||||
{
|
||||
public bool dontDestroyOnLoad;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
if(dontDestroyOnLoad && Application.isPlaying)
|
||||
{
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
Shader.SetGlobalFloat("UnscaledTime", Time.unscaledTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user