BlueSkies for Unity  1.8.1
BlueSkies.Celestial Class Referenceabstract

Parent class to any sky objects. More...

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

Public Member Functions

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

Protected Member Functions

virtual void updatePosition ()
 
abstract void updateSize ()
 
abstract void updateColor ()
 
abstract void updateLighting ()
 
abstract Vector3 getPosition ()
 
virtual void generateParticleSystem ()
 
virtual void placeInfrontOfCamera ()
 

Protected Attributes

GameObject _gameObject = null
 
Color _color
 
float _size
 
Vector3 _position
 
string _name
 
IParticleSystemGenerator _generator = null
 

Static Protected Attributes

static readonly float _CELESTIAL_DISTANCE = 900f
 

Properties

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]
 

Detailed Description

Parent class to any sky objects.

Member Function Documentation

virtual void BlueSkies.Celestial.generateParticleSystem ( )
protectedvirtual

Creates a particle system for a celestial object. Mostly Stars

virtual bool BlueSkies.Celestial.initialize ( string  prefab)
virtual

Base initialization of a Celestial object

Parameters
[in]prefab

Implements BlueSkies.ICelestial.

Reimplemented in BlueSkies.Sun, and BlueSkies.Moon.

virtual void BlueSkies.Celestial.placeInfrontOfCamera ( )
protectedvirtual

Sets a Celestial object to be in front of main camera

virtual void BlueSkies.Celestial.update ( )
virtual

Updates a Celestial object

Implements BlueSkies.ICelestial.

Reimplemented in BlueSkies.Sun, and BlueSkies.Moon.

virtual void BlueSkies.Celestial.updatePosition ( )
protectedvirtual

Updates Celestial position


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