window mode and botany wip
This commit is contained in:
1 parent
f0aa6495c7
commit
0f9576a67b
68 files changed
+8224
-1311
No files matched your search
@@ -0,0 +1,26 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class NebulaPropertyBinder : MonoBehaviour {
|
||||
public Material material;
|
||||
|
||||
private void Start() {
|
||||
if (material == null) {
|
||||
Debug.Log("Material Binder needs a Material.");
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateWildness(Slider s) {
|
||||
material.SetFloat("_Wildness", s.value);
|
||||
}
|
||||
|
||||
public void UpdateZoom(Slider s) {
|
||||
material.SetFloat("_Zoom", s.value);
|
||||
}
|
||||
|
||||
public void UpdateBrightness(Slider s) {
|
||||
material.SetFloat("_Brightness", s.value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user