示例#1
0
    private void DropWeapon()
    {
        //Don't forget to save bullets loaded and ammo associated to gun before dropping
        W_Info.OverwriteData(CurrentLoad, AmmoCount);

        CurrentLoad  = 0;
        AmmoCount    = 0;
        MaxLoad      = 0;
        WeaponDamage = 0;

        W_Info.gameObject.GetComponent <MeshCollider>().enabled = true;
        W_Info.Drop();

        UpdateUI();
    }