Example #1
0
 private bool queueInteractionRequest(PropInteractionRequest interationRequest)
 {
     if (Prop == null || queueHasStoreRequest())
     {
         return(false);
     }
     propInteractionQueue.Add(interationRequest);
     checkHoldCompleted();
     return(true);
 }
Example #2
0
        public bool StoreProp()
        {
            if (Prop == null)
            {
                return(false);
            }
            anim.SetTrigger(AnimationHashes.Params.ExitPropAction);
            PropInteractionRequest propInteractionRequest = new PropInteractionRequest();

            propInteractionRequest.IsStore = true;
            return(queueInteractionRequest(propInteractionRequest));
        }
Example #3
0
        public bool UsePropAtDestination(Vector3 onUseDestination)
        {
            if (Prop == null)
            {
                return(false);
            }
            PropInteractionRequest propInteractionRequest = new PropInteractionRequest();

            propInteractionRequest.IsStore          = false;
            propInteractionRequest.OnUseDestination = onUseDestination;
            return(queueInteractionRequest(propInteractionRequest));
        }
Example #4
0
 private void performNextInteractionRequest()
 {
     if (propInteractionQueue.Count > 0)
     {
         currentRequest = propInteractionQueue[0];
         propInteractionQueue.RemoveAt(0);
         if (currentRequest.IsStore)
         {
             performStore();
         }
         else
         {
             performUse();
         }
     }
 }