Exemple #1
0
 // Use this for initialization
 void Start()
 {
     m_starSystem = gameObject.GetComponent <ParticleSystem> ();
     m_starParser = StarParser.Instance;
     m_starLabels = new HashSet <StarLabel>();
     SetZoom(zoom);
     AsterismDrawer.LeftCamera        = m_cameraLeft;
     AsterismDrawer.RightCamera       = m_cameraRight;
     m_starParser.StarsLoadedHandler += onStarsLoaded;
 }
Exemple #2
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         throw new System.Exception("Attempting to create multiple StarParser instances.");
     }
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     Application.targetFrameRate = 120;
     //m_starSystem = gameObject.GetComponent<ParticleSystem> ();
     m_starParser          = StarParser.Instance;
     m_starLabels          = new HashSet <StarLabel>();
     m_constellationLabels = new HashSet <ConstellationLabel>();
     SetZoom(zoom);
     AsterismDrawer.Target            = m_target;
     m_starParser.StarsLoadedHandler += onStarsLoaded;
 }
 void Awake()
 {
     if (Instance == null) {
             Instance = this;
     } else {
             throw new System.Exception ("Attempting to create multiple StarParser instances.");
     }
 }
 // Use this for initialization
 void Start()
 {
     m_starSystem = gameObject.GetComponent<ParticleSystem> ();
       m_starParser = StarParser.Instance;
       m_starLabels = new HashSet<StarLabel>();
       SetZoom(zoom);
       AsterismDrawer.LeftCamera = m_cameraLeft;
       AsterismDrawer.RightCamera = m_cameraRight;
       m_starParser.StarsLoadedHandler += onStarsLoaded;
 }
 // Use this for initialization
 void Start()
 {
     Application.targetFrameRate = 120;
       //m_starSystem = gameObject.GetComponent<ParticleSystem> ();
       m_starParser = StarParser.Instance;
       m_starLabels = new HashSet<StarLabel>();
       m_constellationLabels = new HashSet<ConstellationLabel>();
       SetZoom(zoom);
       AsterismDrawer.Target = m_target;
       m_starParser.StarsLoadedHandler += onStarsLoaded;
 }