Quantcast
Channel: Answers for "Using Master Function to Call Abilities"
Browsing latest articles
Browse All 6 View Live

Answer by tanoshimi

Sounds like you want to use [delegates][1]. [1]: http://unity3d.com/learn/tutorials/modules/intermediate/scripting/delegates

View Article



Answer by InvincibleCat

I would use an enum that can be set in the editor: public enum E_Ability { FireBall, SoccerBall } //editable in the inspector public E_Ability Ability = E_Ability.FireBall; public Action DoAbility =...

View Article

Answer by jpthek9

Invoke ("AbilityName") That was all I needed :p Special thanks to InvincibleCat for reminding me of that method.

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images