C# Class Supermarket.CustomerState

Afficher le fichier Open project: Clarksj4/Theme-Supermarket-Tycoon-World Class Usage Examples

Protected Properties

Свойство Type Description
customer Customer
moveControl UnityEngine.NavMeshAgent
supermarket Supermarket

Méthodes publiques

Méthode Description
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

Method Details

AnimationComplete() public méthode

Called when the customer's current animation is complete
public AnimationComplete ( ) : void
Résultat void

CustomerState() public méthode

public CustomerState ( Customer customer ) : UnityEngine
customer Customer
Résultat UnityEngine

DestinationReached() public méthode

Called when the customer reaches its destination
public DestinationReached ( ) : void
Résultat void

Initialize() public méthode

Use this for logic that changes the customer's CustomerState object.
public Initialize ( ) : void
Résultat void

MoveCommand() public méthode

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.
Résultat void

OnAwareOf() public méthode

public OnAwareOf ( Shelf other ) : void
other Shelf
Résultat void

OnInteract() public méthode

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

StopCoroutines() public méthode

Called prior to the state changing to clean up any coroutines that are running
public StopCoroutines ( ) : void
Résultat void

Update() public méthode

Called each frame
public Update ( ) : void
Résultat void

Property Details

customer protected_oe property

protected Customer,Supermarket customer
Résultat Customer

moveControl protected_oe property

protected NavMeshAgent,UnityEngine moveControl
Résultat UnityEngine.NavMeshAgent

supermarket protected_oe property

protected Supermarket,Supermarket supermarket
Résultat Supermarket