📗
Padlock System - Doc
  • Padlock System - Introduction
  • ⭐Getting Started
    • Quick Start
    • Detailed Setup
  • ❓Support
    • FAQ
    • Unlock Event
    • Yellow Warnings?
    • Input Locations
    • Adding Audio Clips
    • Adding Trigger Event
    • Changing Materials
    • System Namespace
    • Changing Character Controller
  • 🌀Development
    • Patch Notes - V1.6
    • Roadmap
  • 📧Contacts
    • Contact Me
    • My Other Assets
Powered by GitBook
On this page
  • Where is the input reference?
  • Changing the Input:

Was this helpful?

  1. Support

Input Locations

Where is the input reference?

There are TWO input reference in this package and it is located below:

  • PadlockInteractor script has an input for interacting with objects with the raycast

  • PadlockTrigger script

  • PadlockController script to close the opened item

  • Edit the input keys int he PLInputManager script

Changing the Input:

PadlockController:

void Update()
{
    if (isShowing && Input.GetKeyDown(PLInputManager.instance.closeKey))
    {
         DisablePadlock();
    }
}

PadlockTrigger:

void ShowPadlockInput()
{
    if (canUse && Input.GetKeyDown(PLInputManager.instance.triggerInteractKey))
    {
        padlockController.ShowPadlock();
    }
}

PadlockInteractor:

if (padlockItem != null)
{
    if (Input.GetKeyDown(PLInputManager.instance.interactKey))
    {
         //Logic
    }
}
PreviousYellow Warnings?NextAdding Audio Clips

Last updated 1 year ago

Was this helpful?

❓