16 lines
352 B
C#
16 lines
352 B
C#
using UnityEngine;
|
|
|
|
public class Player : MonoBehaviour
|
|
{
|
|
private void Start()
|
|
{
|
|
if (!base.GetComponent<NetworkView>().isMine)
|
|
{
|
|
Object.Destroy(GetComponent<FPSInputController>());
|
|
Object.Destroy(GetComponent<CharacterMotor>());
|
|
Object.Destroy(GetComponent<CharacterController>());
|
|
Object.Destroy(GetComponent<MouseLook>());
|
|
}
|
|
}
|
|
}
|