C# Class UnderConstructionBox, astrochimps

Inheritance: MonoBehaviour
Mostrar archivo Open project: arcoelho01/astrochimps

Public Properties

Property Type Description
sfxConstrucaoConcluida UnityEngine.AudioClip

Public Methods

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

Private Methods

Method Description
DestroyBox ( ) : IEnumerator

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

Method Details

CreateNewBuilding() public method

Actually creates a building. First, instantiate it, then do the basic setup if needed
public CreateNewBuilding ( ) : void
return void

SetBuildingTime() public method

Sets the building time for this construction box
public SetBuildingTime ( float buildTime ) : void
buildTime float
return void

SetBuiltOverObject() public method

Get the object where this will be built
public SetBuiltOverObject ( Transform builtOver ) : void
builtOver Transform
return void

SetPrefabToBuild() public method

Set the prefab object to build
public SetPrefabToBuild ( Transform prefabToBuild ) : void
prefabToBuild Transform
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateAStarGraphWithNewBuilding() public method

Updates the A* graph with the recently built building, using it's collider
public UpdateAStarGraphWithNewBuilding ( ) : void
return void

Property Details

sfxConstrucaoConcluida public_oe property

public AudioClip,UnityEngine sfxConstrucaoConcluida
return UnityEngine.AudioClip