Beispiel #1
0
    private void CheckUse()
    {
        if (holdable.GetUse() == true)
        {
            if (used == false)
            {
                used = true;
                //activate smoke
                whiteSmoke.SetActive(true);
            }

            if (holdable.GetParented() == true)
            {
                CheckExstinguish();
            }
        }
        else
        {
            if (used == true)
            {
                used = false;
                //deactivate smoke
                whiteSmoke.SetActive(false);
            }
        }
    }
Beispiel #2
0
    private void CheckUse()
    {
        if (holdable.GetUse() == true)
        {
            if (used == false)
            {
                used = true;
            }

            if (holdable.GetParented() == true)
            {
                CheckExstinguish();
            }
        }
        else
        {
            if (used == true)
            {
                used = false;
            }
        }
    }