public void Apply()
        {
            CelestialBody cb = KWSManagerClass.GetCelestialBody(body);

            cameraDistance = (float)cb.Radius + deactivateDistance;
            this.isActive  = false;
            this.relativeTargetPosition = Vector3.zero;
        }
Beispiel #2
0
        protected override void ApplyConfigNode(ConfigNode node, String body)
        {
            GameObject go        = new GameObject();
            PQSWrapper newObject = go.AddComponent <PQSWrapper>();

            go.transform.parent        = KWSManagerClass.GetCelestialBody(body).bodyTransform;
            go.transform.localPosition = Vector3.zero;
            go.transform.localRotation = Quaternion.identity;
            go.transform.localScale    = Vector3.one;
            newObject.LoadConfigNode(node, body);
            ObjectList.Add(newObject);
            newObject.Apply();
        }