Beispiel #1
0
        public override InteractableOptionComponent GetInteractableOption(Interactable interactable, InteractableOption interactableOption = null)
        {
            InteractableOptionComponent returnValue = new ItemPickupComponent(interactable, this, systemGameManager);

            if (interactableOption != null)
            {
                interactableOption.SetComponent(returnValue);
            }
            return(returnValue);
        }
Beispiel #2
0
        public override InteractableOptionComponent GetInteractableOption(Interactable interactable, InteractableOption interactableOption = null)
        {
            InteractableOptionComponent returnValue = new BankComponent(interactable, this);

            if (interactableOption != null)
            {
                interactableOption.SetComponent(returnValue);
            }
            return(returnValue);
        }