C# 클래스 Supermarket.CustomerState

파일 보기 프로젝트 열기: Clarksj4/Theme-Supermarket-Tycoon-World 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
customer Customer
moveControl UnityEngine.NavMeshAgent
supermarket Supermarket

공개 메소드들

메소드 설명
AnimationComplete ( ) : void

Called when the customer's current animation is complete

CustomerState ( Customer customer ) : UnityEngine
DestinationReached ( ) : void

Called when the customer reaches its destination

Initialize ( ) : void

Use this for logic that changes the customer's CustomerState object.

MoveCommand ( Vector3 destination ) : void

Called when the customer receives a move command

OnAwareOf ( Shelf other ) : void
OnInteract ( InteractionZone other ) : void

Called when the customer contacts another gameObject's collider

StopCoroutines ( ) : void

Called prior to the state changing to clean up any coroutines that are running

Update ( ) : void

Called each frame

메소드 상세

AnimationComplete() 공개 메소드

Called when the customer's current animation is complete
public AnimationComplete ( ) : void
리턴 void

CustomerState() 공개 메소드

public CustomerState ( Customer customer ) : UnityEngine
customer Customer
리턴 UnityEngine

DestinationReached() 공개 메소드

Called when the customer reaches its destination
public DestinationReached ( ) : void
리턴 void

Initialize() 공개 메소드

Use this for logic that changes the customer's CustomerState object.
public Initialize ( ) : void
리턴 void

MoveCommand() 공개 메소드

Called when the customer receives a move command
public MoveCommand ( Vector3 destination ) : void
destination UnityEngine.Vector3 The destination the customer has been instructed to move to.
리턴 void

OnAwareOf() 공개 메소드

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

OnInteract() 공개 메소드

Called when the customer contacts another gameObject's collider
public OnInteract ( InteractionZone other ) : void
other InteractionZone The gameObject the triggering collider is attached to
리턴 void

StopCoroutines() 공개 메소드

Called prior to the state changing to clean up any coroutines that are running
public StopCoroutines ( ) : void
리턴 void

Update() 공개 메소드

Called each frame
public Update ( ) : void
리턴 void

프로퍼티 상세

customer 보호되어 있는 프로퍼티

protected Customer,Supermarket customer
리턴 Customer

moveControl 보호되어 있는 프로퍼티

protected NavMeshAgent,UnityEngine moveControl
리턴 UnityEngine.NavMeshAgent

supermarket 보호되어 있는 프로퍼티

protected Supermarket,Supermarket supermarket
리턴 Supermarket