C# Класс UnderConstructionBox, astrochimps

Наследование: MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
sfxConstrucaoConcluida UnityEngine.AudioClip

Открытые методы

Метод Описание
CreateNewBuilding ( ) : void

Actually creates a building. First, instantiate it, then do the basic setup if needed

SetBuildingTime ( float buildTime ) : void

Sets the building time for this construction box

SetBuiltOverObject ( Transform builtOver ) : void

Get the object where this will be built

SetPrefabToBuild ( Transform prefabToBuild ) : void

Set the prefab object to build

Start ( ) : void
Update ( ) : void
UpdateAStarGraphWithNewBuilding ( ) : void

Updates the A* graph with the recently built building, using it's collider

Приватные методы

Метод Описание
DestroyBox ( ) : IEnumerator

Routine to play the complete animation and, after it's done, destroy this object

Описание методов

CreateNewBuilding() публичный Метод

Actually creates a building. First, instantiate it, then do the basic setup if needed
public CreateNewBuilding ( ) : void
Результат void

SetBuildingTime() публичный Метод

Sets the building time for this construction box
public SetBuildingTime ( float buildTime ) : void
buildTime float
Результат void

SetBuiltOverObject() публичный Метод

Get the object where this will be built
public SetBuiltOverObject ( Transform builtOver ) : void
builtOver Transform
Результат void

SetPrefabToBuild() публичный Метод

Set the prefab object to build
public SetPrefabToBuild ( Transform prefabToBuild ) : void
prefabToBuild Transform
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

UpdateAStarGraphWithNewBuilding() публичный Метод

Updates the A* graph with the recently built building, using it's collider
public UpdateAStarGraphWithNewBuilding ( ) : void
Результат void

Описание свойств

sfxConstrucaoConcluida публичное свойство

public AudioClip,UnityEngine sfxConstrucaoConcluida
Результат UnityEngine.AudioClip