Cleaned up and commented version.

This commit is contained in:
Thorbjoern
2025-10-02 00:07:11 +02:00
parent 2b86d9f0a2
commit 4c613c3436
66 changed files with 260 additions and 1020 deletions
@@ -0,0 +1,18 @@
using System.Globalization;
using Unity.Netcode;
using UnityEngine;
// Hilfs-Skript um bestimmte Objekte für den lokalen Spieler unsichtbar zu machen. Findet momentan keine Anwendung.
public class InvisibleForLocalPlayer : NetworkBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
foreach (var r in GetComponentsInChildren<Renderer>())
{
r.enabled = !IsOwner;
}
}
}