Exemplo n.º 1
0
        /// <summary>
        /// Initializes this instance based on the specified stock body.
        /// </summary>
        /// <param name="stockBody">The stock body.</param>
        public void Initialize(CommNetBody stockBody)
        {
            this.body = stockBody.GetComponentInChildren <CelestialBody>();

            //this.occluder is initalised by OnNetworkInitialized() later
            this.Initialize();
        }
        public void copyOf(CommNetBody stockBody)
        {
            CNCLog.Verbose("CommNet Body '{0}' added", stockBody.name);

            this.body = stockBody.GetComponentInChildren <CelestialBody>();

            //this.occluder is initalised by OnNetworkInitialized() later
        }
Exemplo n.º 3
0
        public void CopyOf(CommNetBody stockBody)
        {
            Lib.Verbose("CommNet Body '{0}' added", stockBody.name);

            body = stockBody.GetComponentInChildren <CelestialBody>();
        }