From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../Scripts/Utils/DemoInputConrtoller.cs | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 Assets/ThirdParty/MaterializeFX/MaterializationFX/Scripts/Utils/DemoInputConrtoller.cs (limited to 'Assets/ThirdParty/MaterializeFX/MaterializationFX/Scripts/Utils/DemoInputConrtoller.cs') 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(); - } - - private void Update() - { - if (Input.GetKeyDown(SpaceButton)) - _demoPrefabController.Next(); - - if (Input.GetKeyDown(LightButton)) - Light.enabled = !Light.enabled; - } - } -} \ No newline at end of file -- cgit v1.1-26-g67d0