C# Class BuildingUnitSpawnProgressBar, ES2015C

Used to display the progress bar for unit spawns in buildings.
Inheritance: MonoBehaviour
显示文件 Open project: jgirald/ES2015C

Public Methods

Method Description
FaceCamera ( ) : void

Make sprite always face the camera http://answers.unity3d.com/questions/536208/game-texture-always-face-camera.html

Start ( ) : void
Update ( ) : void
UpdateProgressBar ( float spawnProgress ) : void

Update the progress bar status. Linear between 0.0f (empty) and 1.0f (full).

Method Details

FaceCamera() public method

Make sprite always face the camera http://answers.unity3d.com/questions/536208/game-texture-always-face-camera.html
public FaceCamera ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateProgressBar() public method

Update the progress bar status. Linear between 0.0f (empty) and 1.0f (full).
public UpdateProgressBar ( float spawnProgress ) : void
spawnProgress float Spawn progress of the unit.
return void