LSBUGPG / UnityLibrary

A library of useful Unity components and test scenes
GNU General Public License v3.0
0 stars 0 forks source link

Add a "tool" system #7

Open Tayloj36 opened 8 years ago

Tayloj36 commented 8 years ago

During this, try I'll be cross referencing scripts to create pickups, hopefully this cross referencing will disable a staff that hasn't been picked up yet using if statements.

what could possibly go wrong?

Tayloj36 commented 8 years ago

Okay, after much tedium I used the OnTriggerEnter along with the other.gameObject.CompareTag In order to define the items, and disabling them upon contact with the player. Picking up the different staffs will trigger diferent "Bools" when theese "bools" are active, the player can use the respective spells. I just goes to show that making things in unity isn't all C++ Mumbo Jumbo.