Exemplo n.º 1
0
 public void end(sdGameActor _gameActor)
 {
     _enabled = false;
     t        = 0.0f;
     if (targetSkill != null)
     {
         targetSkill.leave(_gameActor);
     }
     state       = null;
     targetSkill = null;
 }
Exemplo n.º 2
0
    // 切换技能aa
    protected void SwitchSkill(sdGameActor _gameActor, sdSkill s)
    {
        if (_currentSkill != s)
        {
            if (_currentSkill != null)
            {
                if (_gameActor.actionStateTimer.targetSkill != _currentSkill)
                {
                    _currentSkill.leave(_gameActor);
                }
            }

            _currentSkill = s;

            if (s != null)
            {
                s.enter(_gameActor);
            }
        }
    }