Exemplo n.º 1
0
    //This is where we perform the actual action based on
    // the given tag
    void performAction(string tag)
    {
        Gu gu = Gu.Instance;

        switch (tag)
        {
        case "Large Object":
            gu.StartPush();
            break;

        case "Small Object":
            if (gu.IsCarrying())
            {
                print("butts");
                gu.PutDown();
            }
            else
            {
                print("dicks");
                gu.PickUp();
            }
            break;

        default:
            break;
        }
    }