void Start() { Data_static.Player_tab = new List <Player_stats> (); drunkG.SetActive(false); doctorG.SetActive(false); SurvivalistG.SetActive(false); SoldierG.SetActive(false); // MurdererG.SetActive(false); MotherG.SetActive(false); }
public void mother_toggle(bool newValue) { drunk = newValue; if (drunk) { Data_static.Player_tab.Add(new Player_stats("mother")); MotherG.SetActive(true); } else { for (int i = 0; i < Data_static.Player_tab.Count; i++) { if (Data_static.Player_tab[i].name == "mother") { Data_static.Player_tab.RemoveAt(i); } } MotherG.SetActive(false); } }