18 lines
380 B
C#
18 lines
380 B
C#
![]() |
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace MenteBacata.ScivoloCharacterControllerDemo
|
||
|
{
|
||
|
/*
|
||
|
* It ensures that the transforms are synchronized on every update.
|
||
|
*/
|
||
|
public class TransformsSyncher : MonoBehaviour
|
||
|
{
|
||
|
private void LateUpdate()
|
||
|
{
|
||
|
Physics.SyncTransforms();
|
||
|
}
|
||
|
}
|
||
|
}
|