☎️
Phone System - Doc
  • Phone System - Introduction
  • ⭐Getting Started
    • Quick Setup
    • Detailed Setup
    • UI Button Setup
  • ❓Support
    • FAQ
    • Text UI Missing?
    • System Namespace
    • Adding Trigger Event
    • Where are the Inputs?
    • Adding More Phones
    • Adding Audioclips
    • UI Customisation
    • Using Different Character Controller
  • 🌀Development
    • Patch Notes - V1.4
    • Roadmap
  • 📧Contacts
    • Contact Me
    • My Other Assets
Powered by GitBook
On this page
  1. Support

Using Different Character Controller

You can see that we create a reference to your controller at the top of the “PhoneDisableManager” script.

  • NOTE: You want to disable input and mouse look when you disable the player!

  • Change the "player" reference to how you would disable your own controller

Simple to how I've done so below:

[SerializeField] private FirstPersonController player = null;

        public void DisablePlayer(bool disable)
        {
            if (disable)
            {
                player.enabled = false;
                PhoneUIManager.instance.ShowCrosshair(false);
            }

            if (!disable)
            {
                player.enabled = true;
                PhoneUIManager.instance.ShowCrosshair(true);
            }
        }
PreviousUI CustomisationNextPatch Notes - V1.4

Last updated 2 years ago

❓