Leave a comment

My Current Unworking Setup for the Store.

So I was just thinking around bouncing a few ideas and I started to come up with an idea for the store, but the problem is that I am not the best Scripter and not all of my scripts work..

So what I was thinking is I have 3 GameObjects in the Store. They each have a certain cost. When I click them, I am trying to access my ScoreSystem.myscore to reduce the value, and at the same time Instantiate that Object at the current position. So this is the script I used for one of the weapons, although it doesnt work and I dont know why:Image

 

Each weapon has a DontDestroyOnLoad script attached to it, so once it is loaded on this level, I want it to stay throughout all the levels. This is the sscript for that:

Image

 

My Character named ASHOOTER has this script attached to it to automatically parent the  Weapon to itself. This is one example:

Image

 

 

My character named ASHOOTER: I want it to have a script that calls the weapon (By its name) to its own position and rotation (and have variables to relatively edit that too). I can’t figure out how to script this…

 

and I think that is basically how I want it to work.. Let me know if I left out something. The other scripts are in my previous post such as ScoreSystem and Script for Coin Etc…. So fill in the holes?

 

THis is the layout as much as I can show:

Image

 

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: