Пример #1
0
 // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     GameFlow = animator.GetComponent <GameFlow>();
     Scene    = GameFlow.CurrentLoadingScene != null ? GameFlow.CurrentLoadingScene : Scene;
     sceneAO  = SceneManager.LoadSceneAsync(Scene);
     Slider   = GameFlow.LoadingMask.GetComponent <SliderScript>();
     Slider.Rest();
     GameFlow.LoadingMask.SetActive(true);
 }