コード例 #1
0
    //----------------------------------------------------------------------------------------


    //ToEqip状态的事件
    //拔剑,持盾
    public void RHandTakeWeapon()
    {
        //剑父对象的替换
        UnityTool.SetParent(_player.RWeapontrans, _player.Sword.transform);
        UnityTool.SetParent(_player.LWeapontrans, _player.Shield.transform);
        _player.GetWeaponAttr();
    }
コード例 #2
0
    //----------------------------------------------------------------------------------------


    //ToUnEqip状态的事件
    //收剑,收盾
    public void RHandNoWeapon()
    {
        //剑父对象的替换
        UnityTool.SetParent(_player.SwordPos.transform, _player.Sword.transform);
        UnityTool.SetParent(_player.ShieldPos.transform, _player.Shield.transform);
    }