Attribute manager & Health Script Error

joe1512

New member
I have a Item box which has a Attribute Manager & Health Script attached, The attribute manager controls the sound and the object which spawns when the item box is destroyed however when the item breaks ( Health goes to 0) i have it set up to destroy self this all works together perfectly in game the only problem is the error i receive in the unity console.

*Cant remove attribute manager ( Script ) because Health ( script ) depends on it*

The Attribute manager is doing its job and destroying the object but the health script is getting all funny about it. Again in game works as intended just annoying constantly clearing those errors.

Any better solutions?

Regards

-Joe
 
Top