示例#1
0
 void OnTriggerStay(Collider coll)
 {
     if (manager.isActivable && coll.CompareTag("Player"))
     {
         rootRender.material = preGlitchMaterial;
         player.boxUIActivated.SetActive(true);
         if (InputManager.ActiveDevice.Action4.IsPressed)
         {
             SoundManager.instance.PlaySingle(fall);
             rootRender.material.shader = glitchShader;
             StartCoroutine(DeactivateGlitch(2.0f));
             debrisScript.Fall();
             manager.isActivable = false;
         }
     }
     else
     {
         player.boxUIActivated.SetActive(false);
     }
 }