void Awake() { FadeInScript = gameObject.GetComponent <ScreenFadeInFadeOut>(); GameObject.Find("Game Info Component"). GetComponent <CharacterInfoScript>(). RegisterToPlayerHurt(PlayDamageFlash); }
public void EndCreation() { CharStatsToValueDictionary finalStats = new CharStatsToValueDictionary(); foreach (CharacterAttribute st in minimumStats.Keys) { finalStats[st] = StatValue(st); } playerInfo.SetSkills(Skills); playerInfo.Stats = finalStats; playerInfo.FinishCreation(); scr = GameObject.Find("Fade Out Canvas").GetComponent <ScreenFadeInFadeOut>(); scr.StartFadeOut(); StartCoroutine(WaitForFadeOutEnd()); }