Exemplo n.º 1
0
    public void btn_DelogOptions(int Index)
    {
        switch (Index)
        {
        case 0:
            if (_Medicine > 0 && currntCat != null)
            {
                Debug.Log(" we use 1 Medicine ");
                _Medicine  -= 1;
                useMedicine = true;

                if (useMedicine == true)
                {
                    //  Debug.Log(" DelogShowBegin ");
                    _CountCat += 1;
                    _Spawn_Manager.Remove_Cat(currntCat.GetComponent <Cat> ());

                    Destroy(currntCat);
                }
                goDelogShow.SetActive(false);
            }
            break;

        case 1:
            goDelogShow.SetActive(false);
            break;

        default:
            Debug.LogError(" -- Bla! ");
            break;
        }
    }