void startPulsation() { //BtnReact BtnReact BtnReact BtnReact = Hud.GetComponent <BtnReact>(); GameObject victim = BtnReact.getVictim(); Parameters Parameters = victim.GetComponent <Parameters>(); Pulse = Parameters.Pulse; Delay = (double)60.0 / Pulse; timeLeft = Delay; //BloodyScreen.SetActive(true); }
public void ShowThumb() { ThumbBlur.SetActive(true); Thumb.SetActive(true); ThumbWhite.SetActive(true); BtnReact BtnReact = Hud.GetComponent <BtnReact>(); GameObject victim = BtnReact.getVictim(); //Debug.Log(victim); Parameters Parameters = victim.GetComponent <Parameters>(); Delay = Parameters.Backfill; //backfill in seconds //Debug.Log(Delay); }
void startBreathing() { //BtnReact BtnReact BtnReact BtnReact = Hud.GetComponent <BtnReact>(); GameObject victim = BtnReact.getVictim(); Parameters Parameters = victim.GetComponent <Parameters>(); Bfreq = Parameters.Bfreq; Delay = 1; if (Bfreq != 0) { Delay = 60.0f / Bfreq; //Img.SetActive(true); } timeLeft = Delay / 2; }