private bool queueInteractionRequest(PropInteractionRequest interationRequest) { if (Prop == null || queueHasStoreRequest()) { return(false); } propInteractionQueue.Add(interationRequest); checkHoldCompleted(); return(true); }
public bool StoreProp() { if (Prop == null) { return(false); } anim.SetTrigger(AnimationHashes.Params.ExitPropAction); PropInteractionRequest propInteractionRequest = new PropInteractionRequest(); propInteractionRequest.IsStore = true; return(queueInteractionRequest(propInteractionRequest)); }
public bool UsePropAtDestination(Vector3 onUseDestination) { if (Prop == null) { return(false); } PropInteractionRequest propInteractionRequest = new PropInteractionRequest(); propInteractionRequest.IsStore = false; propInteractionRequest.OnUseDestination = onUseDestination; return(queueInteractionRequest(propInteractionRequest)); }
private void performNextInteractionRequest() { if (propInteractionQueue.Count > 0) { currentRequest = propInteractionQueue[0]; propInteractionQueue.RemoveAt(0); if (currentRequest.IsStore) { performStore(); } else { performUse(); } } }