mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-19 12:40:56 +00:00
improve elevator slightly
This commit is contained in:
parent
18dd499890
commit
408f372eb3
@ -30,7 +30,7 @@ namespace QSB.ElevatorSync.WorldObjects
|
||||
|
||||
// BUG : This won't work for the log lift! need to make a different trigger for that
|
||||
|
||||
var boxShape = AttachedObject.gameObject.AddComponent<BoxShape>();
|
||||
var boxShape = AttachedObject.gameObject.GetAddComponent<BoxShape>();
|
||||
boxShape.center = new Vector3(0, 1.75f, 0.25f);
|
||||
boxShape.size = new Vector3(3, 3.5f, 3);
|
||||
|
||||
@ -79,8 +79,13 @@ namespace QSB.ElevatorSync.WorldObjects
|
||||
|
||||
public override void DisplayLines()
|
||||
{
|
||||
var boxShape = AttachedObject.gameObject.GetComponent<BoxShape>();
|
||||
Popcron.Gizmos.Cube(AttachedObject.transform.position + boxShape.center, AttachedObject.transform.rotation, boxShape.size);
|
||||
var boxShape = (BoxShape)_elevatorTrigger._shape;
|
||||
Popcron.Gizmos.Cube(
|
||||
ShapeUtil.Box.CalcWorldSpaceCenter(boxShape),
|
||||
boxShape.transform.rotation,
|
||||
ShapeUtil.Box.CalcWorldSpaceSize(boxShape),
|
||||
_elevatorTrigger.IsTrackingObject(Locator.GetPlayerDetector()) ? Color.green : Color.white
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
@ -26,8 +26,6 @@ namespace QSB.QuantumSync.WorldObjects
|
||||
}
|
||||
}
|
||||
|
||||
public override bool ShouldDisplayDebug() => ControllingPlayer != 0;
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
if (QSBCore.ShowQuantumVisibilityObjects)
|
||||
|
@ -1,5 +1,4 @@
|
||||
using OWML.Common;
|
||||
using QSB.Player;
|
||||
using QSB.Player.TransformSync;
|
||||
using QuantumUNET;
|
||||
using System;
|
||||
|
Loading…
x
Reference in New Issue
Block a user