void OnPlayerIntoBlockTriggerEnter(PlayerIntoBlockTriggerEnter e)
        {
            if (!LastBlock || LastBlock != e.LevelBlock || e.LevelBlock.IsWinBlock)
            {
                return;
            }

            var firstBlock = FirstBlock;

            RemoveBlock(firstBlock);
            Object.Destroy(firstBlock.gameObject);
            CreateNewBlock(LevelController.IsLevelFinish);
        }
示例#2
0
        void OnPlayerIntoBlockTriggerEnter(PlayerIntoBlockTriggerEnter e)
        {
            var levelBlock = e.LevelBlock;

            if (!levelBlock)
            {
                return;
            }

            _isCanShowEndLevelWindow = IsLevelFinish && levelBlock.IsWinBlock;

            var cp = ControllersProcessor.Instance;

            cp.StopCoroutine(ShowWinWindow());
            cp.StartCoroutine(ShowWinWindow());
        }