private void Start() { var timeSleep = GetSleepTime(); if (timeSleep > _minTimeAway) { TimeSpan sleepInterval = TimeSpan.FromSeconds(timeSleep); string timeSleepText = (sleepInterval.Minutes + " min " + sleepInterval.Seconds + " sec").ToUpper(); _informationPanel.Show(timeSleepText, _scoreFormConverter.GetConvertedScore(_chooser.GetScorePerSecondSum() * timeSleep)); } }
private void Awake() { informationPanel.Show(mainPanel.weaponName); //if (playerHud == null) playerHud = FindObjectOfType<PlayerHud>().gameObject; }