// Use this for initialization
    void Start()
    {
        Screen.lockCursor = true;

        if (!cameraControl) {
            cameraControl = gameObject.GetComponent<CameraControl>();
        }
        if (!attachToSurface) {
            attachToSurface = gameObject.GetComponent<AttachToSurface>();
        }

        if (!jetPackStabilize) {
            jetPackStabilize = gameObject.GetComponent<JetPackStabilize>();
        }
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        Screen.lockCursor = true;

        if (!cameraControl)
        {
            cameraControl = gameObject.GetComponent <CameraControl>();
        }
        if (!attachToSurface)
        {
            attachToSurface = gameObject.GetComponent <AttachToSurface>();
        }

        if (!jetPackStabilize)
        {
            jetPackStabilize = gameObject.GetComponent <JetPackStabilize>();
        }
    }