mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
Merge pull request #347 from misternebula/my-eyes-the-fixes-do-nothing
Fixes
This commit is contained in:
commit
35ffe9b058
@ -16,7 +16,7 @@ namespace QSB.Player
|
||||
_markerTarget = new GameObject().transform;
|
||||
_markerTarget.parent = transform;
|
||||
|
||||
_markerTarget.localPosition = Vector3.up * 2;
|
||||
_markerTarget.localPosition = Vector3.up * 0.25f;
|
||||
}
|
||||
|
||||
public void Init(PlayerInfo player)
|
||||
|
@ -62,7 +62,7 @@ namespace QSB.Player
|
||||
return default;
|
||||
}
|
||||
|
||||
DebugLog.DebugWrite($"Create Player : id<{id}> Stacktrace :\r\n{Environment.StackTrace}", MessageType.Info);
|
||||
DebugLog.DebugWrite($"Create Player : id<{id}>", MessageType.Info);
|
||||
player = new PlayerInfo(id);
|
||||
PlayerList.Add(player);
|
||||
OnAddPlayer?.Invoke(id);
|
||||
@ -71,7 +71,7 @@ namespace QSB.Player
|
||||
|
||||
public static void RemovePlayer(uint id)
|
||||
{
|
||||
DebugLog.DebugWrite($"Remove Player : id<{id}> Stacktrace :\r\n{Environment.StackTrace}", MessageType.Info);
|
||||
DebugLog.DebugWrite($"Remove Player : id<{id}>", MessageType.Info);
|
||||
PlayerList.RemoveAll(x => x.PlayerId == id);
|
||||
}
|
||||
|
||||
@ -140,6 +140,8 @@ namespace QSB.Player
|
||||
public static void ChangePlayerVisibility(uint playerId, bool visible)
|
||||
{
|
||||
var player = GetPlayer(playerId);
|
||||
player.Visible = visible;
|
||||
|
||||
if (player.Body == null)
|
||||
{
|
||||
DebugLog.ToConsole($"Warning - Player {playerId} has a null player model!", MessageType.Warning);
|
||||
@ -150,8 +152,6 @@ namespace QSB.Player
|
||||
{
|
||||
renderer.enabled = visible;
|
||||
}
|
||||
|
||||
player.Visible = visible;
|
||||
}
|
||||
|
||||
public static PlayerInfo GetClosestPlayerToWorldPoint(Vector3 worldPoint, bool includeLocalPlayer) => includeLocalPlayer
|
||||
|
Loading…
x
Reference in New Issue
Block a user