del disappear shader from target animation

This commit is contained in:
2024-04-30 20:11:19 +01:00
parent 10b01dc347
commit 56ae7d2e2f
5 changed files with 37 additions and 23 deletions

View File

@@ -10,7 +10,6 @@ public class DissapearShader : MonoBehaviour
private float m_InitalHeight;
void Awake(){
m_InitalHeight = this.transform.position.y;
Debug.Log(m_InitalHeight);
}
void Update(){
float value = Mathf.Clamp( Remap(this.transform.position.y, m_HeightThresholdMin, m_HeightThresholdMax, 1, 0), 0, 1 );