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); }
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); }
public void CreateNewStarInfoList() { starInfo = new StarInfo(); }