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