C# Class Supermarket.CustomerState

Exibir arquivo Open project: Clarksj4/Theme-Supermarket-Tycoon-World Class Usage Examples

Protected Properties

Property Type Description
customer Customer
moveControl UnityEngine.NavMeshAgent
supermarket Supermarket

Public Methods

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

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

CustomerState() public method

public CustomerState ( Customer customer ) : UnityEngine
customer Customer
return UnityEngine

DestinationReached() public method

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

Initialize() public method

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

MoveCommand() public method

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

OnAwareOf() public method

public OnAwareOf ( Shelf other ) : void
other Shelf
return void

OnInteract() public method

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

StopCoroutines() public method

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

Update() public method

Called each frame
public Update ( ) : void
return void

Property Details

customer protected_oe property

protected Customer,Supermarket customer
return Customer

moveControl protected_oe property

protected NavMeshAgent,UnityEngine moveControl
return UnityEngine.NavMeshAgent

supermarket protected_oe property

protected Supermarket,Supermarket supermarket
return Supermarket