示例#1
0
文件: Orbital.cs 项目: ilude/pulsar
        public Orbital(OrbitalConfig config)
        {
            Config          = config;
            Name            = config.Name;
            Mass            = config.Mass;
            InitAngle       = (config.Angle == OrbitalAngle.Random) ? Random.Range(0f, 259.99f) : (float)config.Angle;
            OrbitalDistance = config.Distance;
            Type            = config.Type;

            OffsetAngle = 0;
            Position    = new Vector3(0, 0, 0);
            Children    = new List <Orbital>();
        }
示例#2
0
文件: Star.cs 项目: ilude/pulsar
 public Star(OrbitalConfig config) : base(config)
 {
 }