Exemple #1
0
    //Активация следующего уровня. Ротатор позиции и запуск мяча
    public void BeginLevelTransition(Vector3 nextLevelPosition)
    {
        Level nextLevel = ActivateNextLevel(nextLevelPosition);

        LevelRotator.GetInstance().SetNewLevel(nextLevel.gameObject);
        LevelRotator.GetInstance().IsRotationEnabled = false;

        ballStartPosition          = ball.transform.position;
        currentLevelTransitionTime = 0;
        isTransitioning            = true;
    }
Exemple #2
0
 //Отключение предыдущего уровня
 private void FinishLevelTransition()
 {
     isTransitioning = false;
     prevLevel.Deactivate();
     LevelRotator.GetInstance().IsRotationEnabled = true;
 }
 private void Start()
 {
     LevelController.Init(this);
     LevelRotator.Init(this);
     UIMgr.Init(this);
 }