ui environment changes, fix multiple inits
This commit is contained in:
@@ -14,6 +14,9 @@ public class CharacterDescriptor : MonoBehaviour
|
||||
|
||||
private void OnAnimatorMove()
|
||||
{
|
||||
transform.parent.position = _navMeshAgent.nextPosition;
|
||||
if (_navMeshAgent != null)
|
||||
{
|
||||
transform.parent.position = _navMeshAgent.nextPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user