예제 #1
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>();
        }
    }
예제 #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>();
        }
    }