Ejemplo n.º 1
0
    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");
        }
    }
Ejemplo n.º 2
0
 public void Decrement(E_BUFF type)
 {
     this.buffDictionary[type.ToString()].Decrement();
 }
Ejemplo n.º 3
0
 public void Increment(E_BUFF type, GameObject buffObject)
 {
     this.buffDictionary[type.ToString()].Increment();
     Destroy(buffObject);
 }