Example #1
0
    void Start()
    {
        Time.timeScale = 1;
        //rb = GetComponent<Rigidbody>();
        scriptTrigger = GetComponent <OutTrigger>();

        //rb.angularVelocity = Vector3.zero;

        //rb.velocity = new Vector3(0, 0, 53.0f);
        //rb.velocity = new Vector3(-3.5f, 5.4f, 53.0f);

        stepLearning = 0;
        stop         = true;

        apprentissageColor = joyStickL.GetComponent <Image>().color;

        //instructionTxt.text = "<size=60>Do a <color=#ffa500ff>right barrel</color> by moving the controller<color=#ffa500ff> to the right </color></size>";

        joyStickR.GetComponent <Image>().color = apprentissageColor;
        joyStickL.GetComponent <Image>().color = Color.white;

        joyStickR.transform.GetChild(0).gameObject.SetActive(true);
        joyStickR.transform.GetChild(1).gameObject.SetActive(true);

        horizon.enabled = false;
        foreach (Transform child in horizon.transform)
        {
            child.gameObject.SetActive(false);
        }

        panelHiding.SetActive(false);
    }
Example #2
0
    void Start()
    {
        rb                = GetComponent <Rigidbody>();
        scriptTrigger     = GetComponent <OutTrigger>();
        scriptLookAtArrow = modelArrow.GetComponent <LookAtArrow>();

        rb.angularVelocity = Vector3.zero;

        stepLearning = 0;
        stop         = true;

        apprentissageColor     = joyStickL.GetComponent <Image>().color;
        instructionTxt.enabled = true;
        manette.SetActive(true);
        instructionTxt.text = "<size=40><color=#ffa500ff>Start</color> by moving up the<color=#ffa500ff> left joystick </color></size>";


        joyStickL.transform.GetChild(0).gameObject.SetActive(true);
        //joyStickL.transform.GetChild(1).gameObject.SetActive(true);



        airspeed.enabled = false;
        foreach (Transform child in airspeed.transform)
        {
            child.gameObject.SetActive(false);
        }


        panelHiding.SetActive(false);
    }
Example #3
0
    void Start()
    {
        changementInputScript = GetComponent <changementInput>();

        if (changementInputScript.mobileInput)
        {
            level3 level3Script = GetComponent <level3>();
            level3Script.enabled = false;
        }
        rb            = GetComponent <Rigidbody>();
        scriptTrigger = GetComponent <OutTrigger>();
        inputScript   = GetComponent <XboxAirplane_Input>(); //ligne OK

        rb.angularVelocity = Vector3.zero;                   //ligne OK
        rb.velocity        = new Vector3(0, 0, 53.0f);

        stepLearning = 0;
        stop         = true;
        inputScript.stickyThrottle = 1f;

        apprentissageColor = joyStickL.GetComponent <Image>().color;
    }
Example #4
0
    void Start()
    {
        rb                = GetComponent <Rigidbody>();
        scriptTrigger     = GetComponent <OutTrigger>();
        scriptLookAtArrow = modelArrow.GetComponent <LookAtArrow>();

        rb.angularVelocity = Vector3.zero;

        rb.velocity = new Vector3(0, 0, 53.0f);
        //rb.velocity = new Vector3(-3.5f, 5.4f, 53.0f);


        stepLearning = 0;
        stop         = true;

        apprentissageColor = joyStickL.GetComponent <Image>().color;

        instructionTxt.text = "<size=60>Change <color=#ffa500ff>altitude</color> by moving up and down the<color=#ffa500ff> right joystick </color></size>";
        //instructionTxt.text = "<size=40>Change <b><color=#ed2f3bff>altitude</color></b> by moving up and down the <b><color=#ed2f3bff> right joystick </color></b></size>";

        joyStickR.GetComponent <Image>().color = apprentissageColor;
        joyStickL.GetComponent <Image>().color = Color.white;

        joyStickR.transform.GetChild(0).gameObject.SetActive(true);
        joyStickR.transform.GetChild(1).gameObject.SetActive(true);



        altimeter.enabled = false;
        foreach (Transform child in altimeter.transform)
        {
            child.gameObject.SetActive(false);
        }

        panelHiding.SetActive(false);
    }