C# Класс Supermarket.Checkout

A supermarket checkout. Used by customers to pay for goods.
Наследование: UnityEngine.MonoBehaviour, ISelectable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Awake void

Открытые методы

Метод Описание
ClosestInteractionZone ( Vector3 position ) : GameObject

Get the closest interaction zone to the specified position.

GetStaffZone ( ) : GameObject
OnCommand ( Collider clicked, Vector3 position ) : void
OnDeselect ( ) : void
OnSelect ( ) : void
Pay ( float amount ) : void

Transfers the given amount of money to this checkout.

RandomInteractionZone ( ) : GameObject

Gets a random one of this checkout's interaction zones

Приватные методы

Метод Описание
Awake ( ) : void

Описание методов

ClosestInteractionZone() публичный метод

Get the closest interaction zone to the specified position.
public ClosestInteractionZone ( Vector3 position ) : GameObject
position UnityEngine.Vector3 A world position to test for proximity to this checkouts interaction zones.
Результат UnityEngine.GameObject

GetStaffZone() публичный метод

public GetStaffZone ( ) : GameObject
Результат UnityEngine.GameObject

OnCommand() публичный метод

public OnCommand ( Collider clicked, Vector3 position ) : void
clicked UnityEngine.Collider
position UnityEngine.Vector3
Результат void

OnDeselect() публичный метод

public OnDeselect ( ) : void
Результат void

OnSelect() публичный метод

public OnSelect ( ) : void
Результат void

Pay() публичный метод

Transfers the given amount of money to this checkout.
public Pay ( float amount ) : void
amount float The amount of money to give to this checkout
Результат void

RandomInteractionZone() публичный метод

Gets a random one of this checkout's interaction zones
public RandomInteractionZone ( ) : GameObject
Результат UnityEngine.GameObject