BlueSkies for Unity  1.8.1
BlueSkies.Moon Class Reference

Controls a moons object position, size, lighting, and colors. More...

Inheritance diagram for BlueSkies.Moon:
BlueSkies.Celestial BlueSkies.IMoon BlueSkies.ICelestial

Public Member Functions

override bool initialize (string prefab)
 
override void update ()
 

Protected Member Functions

override void updateSize ()
 
override void updateColor ()
 
override void updateLighting ()
 
override Vector3 getPosition ()
 
- Protected Member Functions inherited from BlueSkies.Celestial
virtual void updatePosition ()
 
virtual void generateParticleSystem ()
 
virtual void placeInfrontOfCamera ()
 

Static Protected Attributes

static readonly float _MOON_ILLUSION_MULTIPLIER = 1.5f
 
- Static Protected Attributes inherited from BlueSkies.Celestial
static readonly float _CELESTIAL_DISTANCE = 900f
 

Additional Inherited Members

- Protected Attributes inherited from BlueSkies.Celestial
GameObject _gameObject = null
 
Color _color
 
float _size
 
Vector3 _position
 
string _name
 
IParticleSystemGenerator _generator = null
 
- Properties inherited from BlueSkies.Celestial
Color Color [get, set]
 
float Size [get, set]
 
Vector3 Position [get]
 
- Properties inherited from BlueSkies.ICelestial
Color Color [get, set]
 
float Size [get, set]
 
Vector3 Position [get]
 
- Properties inherited from BlueSkies.IMoon
Color Color [get, set]
 
Vector3 Position [get]
 

Detailed Description

Controls a moons object position, size, lighting, and colors.

Member Function Documentation

override Vector3 BlueSkies.Moon.getPosition ( )
protectedvirtual

Grabs moons current position

Returns
The Moons current position

Implements BlueSkies.Celestial.

override bool BlueSkies.Moon.initialize ( string  prefab)

Initialization of a moon object based on prefab

Returns
TRUE if successfully initialized
Parameters

Implements BlueSkies.IMoon.

override void BlueSkies.Moon.update ( )

Update on a Moon object

Implements BlueSkies.IMoon.

override void BlueSkies.Moon.updateColor ( )
protectedvirtual

Updates color of Moon object

Implements BlueSkies.Celestial.

override void BlueSkies.Moon.updateLighting ( )
protectedvirtual

Updates lighting of Moon object

Implements BlueSkies.Celestial.

override void BlueSkies.Moon.updateSize ( )
protectedvirtual

Update size of Moon object

Implements BlueSkies.Celestial.


The documentation for this class was generated from the following file: