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); }
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()); }