Exemple #1
0
 public void OnPlace()
 {
     if (HasDisplayShelfFunction())
     {
         StoreObjectFunction_DisplayShelf displayShelf = GetDisplayShelfFunction();
         displayShelf.OnPlace();
     }
     if (HasCheckoutCounterFunction())
     {
         StoreObjectFunction_CheckoutCounter checkoutCounter = GetCheckoutCounterFunction();
         checkoutCounter.OnPlace();
     }
     if (HasBudtenderCounterFunction())
     {
         StoreObjectFunction_BudtenderCounter budtenderCounter = GetBudtenderCounterFunction();
         budtenderCounter.OnPlace();
     }
     if (HasDecorationFunction())
     {
         StoreObjectFunction_Decoration decoration = GetDecorationFunction();
         decoration.OnPlace();
     }
     if (HasDoorwayFunction())
     {
         StoreObjectFunction_Doorway doorway = GetDoorwayFunction();
         doorway.OnPlace();
     }
 }
Exemple #2
0
    public bool HasCheckoutCounterFunction()
    {
        StoreObjectFunction_CheckoutCounter potentialCheckoutCounterFunction = gameObject.GetComponent <StoreObjectFunction_CheckoutCounter>();

        if (potentialCheckoutCounterFunction != null)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }