|
@ -14,6 +14,8 @@ public class YeetController : InputBehaviour |
|
|
[SerializeField] |
|
|
[SerializeField] |
|
|
private Animator m_YeetAnimator; |
|
|
private Animator m_YeetAnimator; |
|
|
|
|
|
|
|
|
|
|
|
public Material trajectoryLineMaterial; |
|
|
|
|
|
|
|
|
public enum YeetState { Unheld, Held, Yeeting }; |
|
|
public enum YeetState { Unheld, Held, Yeeting }; |
|
|
public YeetState yeetState { get; private set; } = YeetState.Unheld; |
|
|
public YeetState yeetState { get; private set; } = YeetState.Unheld; |
|
|
|
|
|
|
|
@ -41,6 +43,7 @@ public class YeetController : InputBehaviour |
|
|
yeetState = YeetState.Held; |
|
|
yeetState = YeetState.Held; |
|
|
|
|
|
|
|
|
m_lineRenderer = gameObject.AddComponent<LineRenderer>(); |
|
|
m_lineRenderer = gameObject.AddComponent<LineRenderer>(); |
|
|
|
|
|
m_lineRenderer.material = trajectoryLineMaterial; |
|
|
|
|
|
|
|
|
m_YeetAnimator.SetBool("Carry", true); |
|
|
m_YeetAnimator.SetBool("Carry", true); |
|
|
m_YeetAnimator.SetBool("Yeet", true); |
|
|
m_YeetAnimator.SetBool("Yeet", true); |
|
|