Exemple #1
0
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         str = (str == "samurai") ? "samurai2" : "samurai";
         samurai.Blend("json/" + str, 10f);
     }
 }
Exemple #2
0
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            if (n == 1)
            {
                str = "square";
            }
            if (n == 2)
            {
                str = "circle";
            }
            if (n == 0)
            {
                str = "triangle";
            }

            s.Blend("json/" + str, 40f);

            n = n >= 2 ? 0 : n + 1;
        }
    }