Beispiel #1
0
    public void ToAttack()
    {
        if (LockEnemy == null)
        {
            return;
        }
        CurrRoleFSMMgr.ChangeState(RoleState.Attack);

        //暂时写死
        LockEnemy.ToHurt(100, 0.5f);
    }
Beispiel #2
0
    /// <summary>
    /// 切换到攻击
    /// </summary>
    public void ToAttack()
    {
        //如果没有锁定目标就不能攻击
        if (LockEnemy == null)
        {
            return;
        }
        RoleFSMMgr.ChangeState(RoleStateType.Attack);

        //锁定敌人受伤
        LockEnemy.ToHurt(100, 0.5f);
    }