예제 #1
0
    void Update()
    {
        if (valuesSet)
        {
            switch (draw.GetPalette(palette))
            {
            case 1:
                text.text = "Collidable";
                break;

            case 2:
                text.text = "Noncollidable";
                break;

            case 3:
                text.text = "Semisolid";
                break;

            case 4:
                text.text = "Idol Filter";
                break;

            case 5:
                text.text = "Danger";
                break;

            default:
                text.text = "";
                break;
            }
        }
    }
예제 #2
0
 void Update()
 {
     if (valuesSet)
     {
         if (MouseUtilities.TouchingUI(rt) && Input.GetMouseButtonDown(0))
         {
             action.Invoke(palette);
         }
         im.color = typeColors[draw.GetPalette(palette) - 1];
     }
 }