예제 #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;
 }
예제 #2
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         throw new System.Exception("Attempting to create multiple StarParser instances.");
     }
 }
예제 #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;
 }
예제 #4
0
 void Awake()
 {
     if (Instance == null) {
             Instance = this;
     } else {
             throw new System.Exception ("Attempting to create multiple StarParser instances.");
     }
 }
예제 #5
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;
 }
예제 #6
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;
 }