Exemplo n.º 1
0
        public void DropEquippedGear()
        {
            equippedGear.OnDrop();

            Vector3    launchForce  = transform.forward * itemDropForce;
            GameObject newWorldItem = WorldItem.CreateWorldItem(transform.position, transform.rotation, equippedGear.gameObject, launchForce);

            interactor.DroppedObject(newWorldItem);
        }
Exemplo n.º 2
0
        private void DropHeldWeapon()
        {
            Vector3    launchForce   = transform.forward * itemDropForce;
            GameObject droppedWeapon = rightHand.GetComponentInChildren <BaseWeapon>().gameObject;

            if (!droppedWeapon)
            {
                return;
            }

            GameObject newWorldItem = WorldItem.CreateWorldItem(transform.position, transform.rotation, droppedWeapon, launchForce);

            interactor.DroppedObject(newWorldItem);
        }