示例#1
0
    void Start()            // when this was OnEnable only the first instance of the ship attracted. Other would, if toggled in inspector.
    {
        rb        = GetComponent <Rigidbody>();
        rayTarget = LayerMask.GetMask("RayTarget");

        Gravity.orbitals.Add(rb);
        CameraControl.BeginCameraTracking();
    }