Exemplo n.º 1
0
    //동물풀어줌
    public void Free(string name)
    {
        Gamedata.clear += 1;
        print(Gamedata.clear);
        switch (name)
        {
        case "cow":
            Cow.CrossFadeAlpha(0, 4, true);
            break;

        case "sheep":
            Sheep.CrossFadeAlpha(0, 4, true);
            break;

        case "duck":
            Duck.CrossFadeAlpha(0, 4, true);
            break;

        case "chicken":
            Chicken.CrossFadeAlpha(0, 4, true);
            break;
        }
    }