using System.Collections; using System.Collections.Generic; using UnityEngine; using KinematicCharacterController.Walkthrough.NoClipState; public class CustomCameraManager : MonoBehaviour { public GameObject player; [ContextMenu("1")] public void EnablePlayer() { player.transform.GetComponent().enabled = true; } [ContextMenu("2")] public void DisEnablePlayer() { player.transform.GetComponent().enabled = false; } }