21 lines
486 B
C#
21 lines
486 B
C#
|
|
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<MyPlayer>().enabled = true;
|
||
|
|
}
|
||
|
|
[ContextMenu("2")]
|
||
|
|
public void DisEnablePlayer() {
|
||
|
|
|
||
|
|
|
||
|
|
player.transform.GetComponent<MyPlayer>().enabled = false;
|
||
|
|
}
|
||
|
|
}
|