コード例 #1
0
        public Vector3 GetStoppingDistance(InventoryItem _heldItem = null)
        {
            InteractiveItemAction act = OverridingAction(_heldItem);

            if (act != null)
            {
                return(act.stoppingDistance);
            }
            return(stoppingDistance);
        }
コード例 #2
0
        public Vector3 GetCenterOffset(InventoryItem _heldItem = null)
        {
            InteractiveItemAction act = OverridingAction(_heldItem);

            if (act != null)
            {
                return(act.centerOffset);
            }

            return(centerOffset);
        }