private void AttemptDrop() { //Debug.Log("AttemptDrop"); if (_HeldObject != null) { if (!_HeldObject.OnAction()) { _HeldObject = null; } return; } }
public void OnAction() { //Debug.Log("on action, held: " + _HeldObject); if (_HeldObject != null) { if (!_HeldObject.OnAction()) { _HeldObject = null; } return; } InteractiveObject obj = GetInteractiveObject(); if (obj != null && obj.OnAction()) { _HeldObject = obj; } }
public void ForceDrop() { //Debug.Log("forcing drop, _HeldObject"); _HeldObject = null; }