NEED HELP URGENTLY WITH SCRIPTING

Hi
My name is Theron, and Im a masters student , studying computer games systems. My dissertation project is on 3d simulation of a self checkout machine. I have never worked on unity 3d before, but I tried creating small games, thus im not well versed in it. I needed some solution as to how to overcome the difficulties im facing at the moment

I have to design the entire supermarket, which i have done in 3ds max, including the items i will be using in the supermarket.

The environment in the supermarket is ready, but m stuck with the scripting part.

My first person controller is a person holding a trolley and as i move my way around the supermarket i can click on the items i want to buy. I did this by writing a bit of java script code.

Problems facing:-

  1. Once i click the items i want to buy i created an animation for the player to remove the item from the shelves, but when I place it in the trolley it dose not remain on the trolley and falls directly to the floor.

  2. im creating a self check out machine thus i wanted an idea as to how to change the screens on the machine as the instruction is followed. for instance
    a) first option is “Scan Items”
    b) second the screen clears and the scan items part comes. and once we click finish and pay the screen clears
    c) the next screen is the payment mode.

In this way i wanted an idea how to script all this. Can you please help me assist me, as my dissertation is due this month:(

Thank you

To have the items ride in your cart you may need to make the items children of the cart.

canOfCorn.transform.parent = cart.transform;

To change from walking around to a new scene where your looking at your checkout screen

function OnTriggerEnter() {
Application.LoadLevel ("CheckoutSceneName");
}

To change the display of the gui your looking at use a simple bool and wrap the layout u want to hide

if(showIt) {
GUI.Label=Example
}

Hope these examples help :smile: Its all basic stuff in the docs 8)