private int Action(E_BUFF type) { Debug.Log(type.ToString() + " Action"); switch (type) { case E_BUFF.Mask: this.alert.Show("AlterMaskAntiCovid"); this.Decrement(type); return(0); case E_BUFF.Pill: this.PillAlert.SetActive(true); StartCoroutine(WaitForPillAction()); return(1); default: throw new System.ArgumentException("Invalid buff"); } }
public void Decrement(E_BUFF type) { this.buffDictionary[type.ToString()].Decrement(); }
public void Increment(E_BUFF type, GameObject buffObject) { this.buffDictionary[type.ToString()].Increment(); Destroy(buffObject); }