public void TakingLives() { maxHP--; _hpCounts.FindLast(h => h.activeSelf == true).SetActive(false); if (maxHP <= 0) { ScreenInterface.GetInstance().Execute(ScreenType.RestartMenu); } }
private void Awake() { _controllers = new Controllers(); Initialization(); ScreenInterface.GetInstance().Execute(ScreenType.GameMenu); _mainCanvas = GameObject.FindGameObjectWithTag("MainCanvas").GetComponent <Canvas>(); _gameMenu = _mainCanvas.GetComponentInChildren <GameMenuBehaviour>(); _helpButton = _gameMenu.GameMenuHelpButton; _tutorialHand = _mainCanvas.GetComponentInChildren <TutorialHandBehaviour>(); CardDealerController = (CardDealerController)_controllers._initializations[0]; DifficultyController = (DifficultyController)_controllers._initializations[1]; CameraAnimationController = GetComponentInChildren <CameraAnimationController>(); }