Beispiel #1
0
    public void ColorPicking()
    {
        if (colorPicking == false)
        {
            colorPicking   = true;
            Time.timeScale = 0.0f;
        }
        else
        {
            colorPicking   = false;
            Time.timeScale = 1.0f;
        }
        GameObject CPobject = colorPicker.gameObject;

        if (CPobject.activeSelf)
        {
            colorPicker.Deactivate();
        }
        else
        {
            colorPicker.Activate();
        }
    }