Exemplo n.º 1
0
        public void SetStarInfo(float x, float y, int colourCode)
        {
            StarInfo starInfo = new StarInfo();

            starInfo.Location_X = (float)Math.Round(x);
            starInfo.Location_Y = (float)Math.Round(y);
            starInfo.ColourCode = colourCode;

            session.StarInfo.Add(starInfo);
        }
Exemplo n.º 2
0
        public void SetStarInfo(Star star)
        {
            //var star = starObj.GetComponent<Star>();
            StarInfo starInfo = new StarInfo();

            starInfo.StarName   = star.StarName;
            starInfo.Location_X = (float)Math.Round(star.StarPositionX, 2);
            starInfo.Location_Y = (float)Math.Round(star.StarPositionY, 2);
            starInfo.ColourCode = star.Colourcode;

            session.StarInfo.Add(starInfo);
        }
Exemplo n.º 3
0
 public void CreateNewStarInfoList()
 {
     starInfo = new StarInfo();
 }