C# Class Supermarket.Checkout

A supermarket checkout. Used by customers to pay for goods.
Inheritance: UnityEngine.MonoBehaviour, ISelectable
ファイルを表示 Open project: Clarksj4/Theme-Supermarket-Tycoon-World Class Usage Examples

Private Properties

Property Type Description
Awake void

Public Methods

Method Description
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

Private Methods

Method Description
Awake ( ) : void

Method Details

ClosestInteractionZone() public method

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.
return UnityEngine.GameObject

GetStaffZone() public method

public GetStaffZone ( ) : GameObject
return UnityEngine.GameObject

OnCommand() public method

public OnCommand ( Collider clicked, Vector3 position ) : void
clicked UnityEngine.Collider
position UnityEngine.Vector3
return void

OnDeselect() public method

public OnDeselect ( ) : void
return void

OnSelect() public method

public OnSelect ( ) : void
return void

Pay() public method

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
return void

RandomInteractionZone() public method

Gets a random one of this checkout's interaction zones
public RandomInteractionZone ( ) : GameObject
return UnityEngine.GameObject