Browse Source

Added material field to line renderer

develop
MrJDunn 3 years ago
parent
commit
9d40d6577e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      Assets/Scripts/Behaviours/YeetController.cs

+ 3
- 0
Assets/Scripts/Behaviours/YeetController.cs View File

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

Loading…
Cancel
Save