/// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 void Awake()
 {
     StateMachine = GetComponent <CharacterStateMachine>();
     if (Director == null)
     {
         Director = GetComponent <PlayableDirector>();
     }
     Director.timeUpdateMode = DirectorUpdateMode.Manual;
 }
 /// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 void Awake()
 {
     StateMachine = GetComponent <CharacterStateMachine>();
     ObjectUtil.DestroyAll <PlayableDirector>(this);
 }