void OnEnable()
        {
            titleStyle.alignment        = TextAnchor.MiddleCenter;
            titleStyle.normal.textColor = Color.black;
            titleStyle.fontSize         = 16;

            monobehaviour = target as CharacterAbility;
        }
Exemple #2
0
        void RunAbility(CharacterAbility ability, float dt)
        {
            if (!ability.isEnabled)
            {
                return;
            }

            ability.Process(dt);
        }