summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/MaterializeFX/MaterializationFX/Scripts/Utils/DemoInputConrtoller.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-10 14:07:40 +0800
committerchai <chaifix@163.com>2022-03-10 14:07:40 +0800
commit22891bf59032ba88262824255a706d652031384b (patch)
tree7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/MaterializeFX/MaterializationFX/Scripts/Utils/DemoInputConrtoller.cs
parent8b04ea73e540067f83870b61d89db4868fea5e8a (diff)
* move folder
Diffstat (limited to 'Assets/ThirdParty/MaterializeFX/MaterializationFX/Scripts/Utils/DemoInputConrtoller.cs')
-rw-r--r--Assets/ThirdParty/MaterializeFX/MaterializationFX/Scripts/Utils/DemoInputConrtoller.cs37
1 files changed, 0 insertions, 37 deletions
diff --git a/Assets/ThirdParty/MaterializeFX/MaterializationFX/Scripts/Utils/DemoInputConrtoller.cs b/Assets/ThirdParty/MaterializeFX/MaterializationFX/Scripts/Utils/DemoInputConrtoller.cs
deleted file mode 100644
index c2b02251..00000000
--- a/Assets/ThirdParty/MaterializeFX/MaterializationFX/Scripts/Utils/DemoInputConrtoller.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using UnityEngine;
-
-namespace MaterializationFX.Scripts.Utils
-{
- internal sealed class DemoInputConrtoller : MonoBehaviour
- {
- private const string SpaceButton = "space";
- private const string LightButton = "f";
- private DemoPrefabController _demoPrefabController;
-
- public Light Light;
-
- public void EnableLigh()
- {
- Light.enabled = true;
- }
-
- public void DisableLight()
- {
- Light.enabled = false;
- }
-
- private void Start()
- {
- _demoPrefabController = GetComponent<DemoPrefabController>();
- }
-
- private void Update()
- {
- if (Input.GetKeyDown(SpaceButton))
- _demoPrefabController.Next();
-
- if (Input.GetKeyDown(LightButton))
- Light.enabled = !Light.enabled;
- }
- }
-} \ No newline at end of file