C# 클래스 Supermarket.Customer

Покупатель
파일 보기 프로젝트 열기: Clarksj4/Theme-Supermarket-Tycoon-World 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Awake void
NotifyListeners void
OnEnable void
Start void
Update void

공개 메소드들

메소드 설명
AddListener ( ICustomerStateListener listener ) : void
Destroy ( ) : void

Destroys this customer. Preserves the selection object (if attached) by calling its deselect method.

DisableCollisions ( ) : void
EnableCollisions ( ) : void
FindTask ( ) : void
Initialize ( ) : void

Fills the customers shopping list and wallet and sets it to Shop state

Move ( Vector3 position ) : void

Tells the customer to move to a given position in the supermarket

OnAwareOf ( Shelf shelf ) : void
OnCommand ( Collider clicked, Vector3 position ) : void
OnDeselect ( ) : void
OnDrop ( ) : void
OnInteract ( InteractionZone other ) : void
OnPickUp ( ) : void
OnSelect ( ) : void
Pay ( Checkout checkout ) : void

Makes the customer give money to the given checkout. The money is subtracted from the customers wallet

RemoveListener ( ICustomerStateListener listener ) : void
SetState ( CustomerState state ) : void

Assign customer state to given state then call the state's initialize method

ShelfLocationKnown ( string product ) : bool
Think ( GameObject subject ) : void

Displays the given object in the customer's thoguht bubble for a limited time

비공개 메소드들

메소드 설명
Awake ( ) : void
NotifyListeners ( ) : void
OnEnable ( ) : void
Start ( ) : void
Update ( ) : void

메소드 상세

AddListener() 공개 메소드

public AddListener ( ICustomerStateListener listener ) : void
listener ICustomerStateListener
리턴 void

Destroy() 공개 메소드

Destroys this customer. Preserves the selection object (if attached) by calling its deselect method.
public Destroy ( ) : void
리턴 void

DisableCollisions() 공개 메소드

public DisableCollisions ( ) : void
리턴 void

EnableCollisions() 공개 메소드

public EnableCollisions ( ) : void
리턴 void

FindTask() 공개 메소드

public FindTask ( ) : void
리턴 void

Initialize() 공개 메소드

Fills the customers shopping list and wallet and sets it to Shop state
public Initialize ( ) : void
리턴 void

Move() 공개 메소드

Tells the customer to move to a given position in the supermarket
public Move ( Vector3 position ) : void
position Vector3 The position to move to
리턴 void

OnAwareOf() 공개 메소드

public OnAwareOf ( Shelf shelf ) : void
shelf Shelf
리턴 void

OnCommand() 공개 메소드

public OnCommand ( Collider clicked, Vector3 position ) : void
clicked Collider
position Vector3
리턴 void

OnDeselect() 공개 메소드

public OnDeselect ( ) : void
리턴 void

OnDrop() 공개 메소드

public OnDrop ( ) : void
리턴 void

OnInteract() 공개 메소드

public OnInteract ( InteractionZone other ) : void
other InteractionZone
리턴 void

OnPickUp() 공개 메소드

public OnPickUp ( ) : void
리턴 void

OnSelect() 공개 메소드

public OnSelect ( ) : void
리턴 void

Pay() 공개 메소드

Makes the customer give money to the given checkout. The money is subtracted from the customers wallet
public Pay ( Checkout checkout ) : void
checkout Checkout The checkout to pay the money to
리턴 void

RemoveListener() 공개 메소드

public RemoveListener ( ICustomerStateListener listener ) : void
listener ICustomerStateListener
리턴 void

SetState() 공개 메소드

Assign customer state to given state then call the state's initialize method
public SetState ( CustomerState state ) : void
state CustomerState The state to change to.
리턴 void

ShelfLocationKnown() 공개 메소드

public ShelfLocationKnown ( string product ) : bool
product string
리턴 bool

Think() 공개 메소드

Displays the given object in the customer's thoguht bubble for a limited time
public Think ( GameObject subject ) : void
subject GameObject The object to display in the customer's thought bubble. The object is assumed /// to be sized correctly.
리턴 void