quantum-space-buddies/QSB/Tools/QSBTool.cs

44 lines
939 B
C#
Raw Normal View History

2020-07-29 21:04:50 +00:00
using UnityEngine;
namespace QSB.Tools
2020-07-29 21:04:50 +00:00
{
public class QSBTool : PlayerTool
{
2020-07-30 20:17:51 +00:00
public ToolType Type { get; set; }
public GameObject ToolGameObject { get; set; }
public DampedSpringQuat MoveSpring
{
get => _moveSpring;
set => _moveSpring = value;
}
public Transform StowTransform
{
get => _stowTransform;
set => _stowTransform = value;
}
public Transform HoldTransform
{
get => _holdTransform;
set => _holdTransform = value;
}
public float ArrivalDegrees
{
get => _arrivalDegrees;
set => _arrivalDegrees = value;
}
2020-07-29 21:04:50 +00:00
private void OnEnable()
{
ToolGameObject.SetActive(true);
}
private void OnDisable()
{
ToolGameObject.SetActive(false);
}
}
}