This commit is contained in:
Dominik G.
2025-10-29 16:44:55 +01:00
parent 691c80343e
commit cd0ef3c73a
2 changed files with 43 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
using Steamworks; using Steamworks;
using UnityEngine; using UnityEngine;
using MegaKoop.Game.UI;
namespace MegaKoop.Game.Networking namespace MegaKoop.Game.Networking
{ {
@@ -84,6 +85,12 @@ namespace MegaKoop.Game.Networking
remoteTargetPosition = rootTransform.position; remoteTargetPosition = rootTransform.position;
remoteTargetRotation = rootTransform.rotation; remoteTargetRotation = rootTransform.rotation;
var nameTag = GetComponent<SteamNameTag>();
if (nameTag == null)
{
nameTag = gameObject.AddComponent<SteamNameTag>();
}
nameTag.SetFollowHead(null, this);
} }
private void Start() private void Start()

File diff suppressed because one or more lines are too long