示例#1
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);
    }
示例#2
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);
    }