Ejemplo n.º 1
0
    public void clickPineedBnt()
    {
        //toggling pinned on/off and updateing the text feild

        if (particle.pinned == false)
        {
            particle.pinned = true;
        }
        else if (particle.pinned == true)
        {
            particle.pinned = false;
        }
        pinnedField.GetComponent <Text>().text = particle.pinned.ToString();
        particle.SetPinned(particle.pinned);

        Debug.Log("clickPinnedBnt called");
    }