option for change visual character
This commit is contained in:
@@ -8,8 +8,7 @@ public class Player : BaseCharacter
|
||||
public event EventHandler<bool> OnContainerChanged;
|
||||
public static Player Instance { get; private set; }
|
||||
|
||||
[SerializeField]
|
||||
private Transform _holdPoint;
|
||||
private HoldPoint _holdPoint;
|
||||
|
||||
private PlayerStates _currentActing;
|
||||
|
||||
@@ -43,6 +42,8 @@ public class Player : BaseCharacter
|
||||
|
||||
private void Start()
|
||||
{
|
||||
base.IntCharacter();
|
||||
_holdPoint= GetComponentInChildren<HoldPoint>();
|
||||
GameManager.Instance.Time.OnMinuteChanged += UpdateStatsByClock;
|
||||
_animator.applyRootMotion = true;
|
||||
_navAgent.updatePosition = false;
|
||||
@@ -120,7 +121,7 @@ public class Player : BaseCharacter
|
||||
|
||||
public void SetContainerItem(ContainerItem containerItem)
|
||||
{
|
||||
containerItem.transform.parent = _holdPoint;
|
||||
containerItem.transform.parent = _holdPoint.transform;
|
||||
containerItem.transform.localPosition = Vector3.zero;
|
||||
_containerItem = containerItem;
|
||||
OnContainerChanged.Invoke(this,true);
|
||||
|
||||
Reference in New Issue
Block a user