NanoPark/Assets/Scripts/NetPlayer.cs
2022-01-26 19:10:12 +05:30

26 lines
457 B
C#

using System.Collections;
using System.Collections.Generic;
using Mirror;
using UnityEngine;
public class NetPlayer : NetworkBehaviour
{
public Behaviour[] LocalComponents;
void Start()
{
if(!isLocalPlayer){
foreach(Behaviour localComponent in LocalComponents){
localComponent.enabled=false;
}
}
}
// Update is called once per frame
void Update()
{
}
}