Constant Weapons

Added script for constant weapons, which can start and stop firing at any time (unless they're reloading)
Created Constant Laser
Fixed exception when dragging to delete item
This commit is contained in:
Reinier Vens 2021-01-27 02:39:17 +00:00
commit 8629b35fd6
13 changed files with 473 additions and 102 deletions

View file

@ -196,7 +196,7 @@ public class InventoryMenu : MonoBehaviour
panel.IgnoreOccupancy = null;
panel.RefreshCells();
if(_dragTargetPanel!=panel)
if(_dragTargetPanel!=panel && _dragTargetPanel != null)
_dragTargetPanel.RefreshCells();
_dragItem = null;