skybox subsetter
This commit is contained in:
30
Assets/Skybox Blender/Demos/SpacebarClick3.cs
Normal file
30
Assets/Skybox Blender/Demos/SpacebarClick3.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace SkyboxBlenderSpace
|
||||
{
|
||||
public class SpacebarClick3 : MonoBehaviour
|
||||
{
|
||||
public SkyboxBlender skyboxScript;
|
||||
bool isStopped;
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Space)) {
|
||||
skyboxScript.Blend(2);
|
||||
isStopped = false;
|
||||
}
|
||||
|
||||
// stop blending
|
||||
if (Input.GetKeyDown(KeyCode.E)) {
|
||||
if (isStopped) {
|
||||
skyboxScript.Blend(2);
|
||||
isStopped = false;
|
||||
}
|
||||
else {
|
||||
skyboxScript.Stop();
|
||||
isStopped = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user