mirror of
https://github.com/OMGeeky/GameDevGameJamV2.git
synced 2026-01-18 01:13:16 +01:00
Checkpoints & movement
This commit is contained in:
14
Assets/Data/Dissolve/DissolveSample.cs
Normal file
14
Assets/Data/Dissolve/DissolveSample.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class DissolveSample : MonoBehaviour {
|
||||
|
||||
private Material material;
|
||||
|
||||
private void Start() {
|
||||
material = GetComponent<Renderer>().material;
|
||||
}
|
||||
|
||||
private void Update() {
|
||||
material.SetFloat("_DissolveAmount", Mathf.Sin(Time.time) / 2 + 0.5f);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user