C# 클래스 Supermarket.Checkout

A supermarket checkout. Used by customers to pay for goods.
상속: UnityEngine.MonoBehaviour, ISelectable
파일 보기 프로젝트 열기: Clarksj4/Theme-Supermarket-Tycoon-World 1 사용 예제들

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