Example #1
0
 public void AddOrbitalObject(OrbitableInfo inObject)
 {
     //Debug.Log("testing orbital object " + inObject.orbitalName + " " + inObject.GetInstanceID());
     //if (!orbitals.Contains(inObject))
     {
         //Debug.Log("adding new orbital object " + inObject.orbitalName);
         orbitals.Add(inObject);
     }
     if (inObject.distanceFromCenterAU > AUFarPlanet)
     {
         AUFarPlanet = inObject.distanceFromCenterAU;
     }
     //Debug.Log("au far planet set to " + AUFarPlanet + " for " + systemName);
 }
Example #2
0
 public void SetCopyFrom(OrbitableInfo otherInfo)
 {
     orbitalName  = otherInfo.orbitalName;
     orbitalID    = otherInfo.orbitalID;
     orbitalOrder = otherInfo.orbitalOrder;
     orbitTarget  = otherInfo.orbitTarget;
     //orbitTargetObject = otherInfo.orbitTargetObject;
     orbitalType                  = otherInfo.orbitalType;
     orbitalRange                 = otherInfo.orbitalRange;
     spritePlanetResourceID       = otherInfo.spritePlanetResourceID;
     distanceFromCenterAU         = otherInfo.distanceFromCenterAU;
     distanceFromCenterUnityScale = otherInfo.distanceFromCenterUnityScale;
     planetUnityScale             = otherInfo.planetUnityScale;
     orbitOffsetX                 = otherInfo.orbitOffsetX;
     orbitOffsetY                 = otherInfo.orbitOffsetY;
     orbitSizeX       = otherInfo.orbitSizeX;
     orbitSizeY       = otherInfo.orbitSizeY;
     orbitAngle       = otherInfo.orbitAngle;
     orbitSpeed       = otherInfo.orbitSpeed;
     orbitStart       = otherInfo.orbitStart;
     rotatesClockwise = otherInfo.rotatesClockwise;
 }