using UnityEngine;
namespace NitroxClient.GameLogic.PlayerLogic;
///
/// Attached to a RemotePlayer. Useful to determine that this script's GameObject is in the EntityRoot of a RemotePlayer.
///
///
/// The EntityRoot of an object is defined as the top most GameObject as when an object hierarchy first was spawned in. Either from a prefab, or in Nitrox' case, a cloned root game object.
///
public class RemotePlayerIdentifier : MonoBehaviour, IObstacle
{
public RemotePlayer RemotePlayer;
public bool IsDeconstructionObstacle() => true;
public bool CanDeconstruct(out string reason)
{
reason = Language.main.Get("Nitrox_RemotePlayerObstacle");
return false;
}
}