private void UpdateMovingGameObject() { if (character.Movement != null) { character.Update(); character.KinematicData.ApplyWorldLimit(X_WORLD_SIZE, Z_WORLD_SIZE); } }
private void UpdateMovingGameObject(DynamicCharacter movingCharacter) { if (movingCharacter.Movement != null) { movingCharacter.Update(); movingCharacter.KinematicData.ApplyWorldLimit(X_WORLD_SIZE, Z_WORLD_SIZE); movingCharacter.GameObject.transform.position = movingCharacter.Movement.Character.position; } }