Safe System - Doc
  • Safe System - Introduction
  • ⭐GETTING STARTED
    • Quick Start
    • Detailed Setup
  • ❓SUPPORT
    • FAQ
    • Unlock Event
    • Adding Audio Clips
    • System Namespace
    • Adding Trigger Event
    • Where are the Inputs?
    • When Opened Issue?
    • Combination Numbers Issue?
    • 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 “SafeDisableManager” 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:

    public class SafeDisableManager : MonoBehaviour
    {
        [Header("Player Controller Reference")]
        [SerializeField] private FirstPersonController _player = null;

        public void DisablePlayer(bool disable)
        {
            if (disable)
            {
                _player.enabled = false;
            }
            else
            {
                _player.enabled = true;
            }
        }
PreviousCombination Numbers Issue?NextPatch Notes - V1.4

Last updated 2 years ago

❓