C# Класс Supermarket.CustomerState

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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