示例#1
0
文件: Weapon.cs 项目: Hooch0/FPS
    public void Drop()
    {
        ChangeGraphicsLayerMask(0x1);
        transform.parent = null;

        InteractableGO.layer = 0xA;
        ResetKickback();

        foreach (Collider collider in WeaponColliders)
        {
            collider.enabled = true;
        }
        WeaponRigidbody.isKinematic            = false;
        WeaponRigidbody.collisionDetectionMode = CollisionDetectionMode.Continuous;
        WeaponRigidbody.useGravity             = true;


        WeaponRecoil.ResetRecoilTarget();
        _reloadDelay.Stop();
        IsReloading = false;

        _character = null;
    }