2020-07-29 21:04:50 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2020-07-30 20:27:14 +00:00
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|