Quantcast
Channel: Answers for "Item-Weapon Class"
Browsing latest articles
Browse All 4 View Live

Answer by jonnyhopper

Yes, you cannot create anything that inherits from a Monobehaviour using new() Instead you need to make a new game object and attach the component to it, for example: GameObject myGunObject = new...

View Article



Answer by RuggeriExtreme

Ah, so i need a gameobject for initalize a new istance of Gun.. If I remove Item: Monobehaviour and i don't use the coroutine, the result is better?

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images