void Start()
    {
        scriptProgress = progress.GetComponentInChildren <ProgressRadialBehaviour>();

        VuforiaBehaviour.Instance.enabled = false;
        StartCoroutine(LoadVR());
    }
    public void Add()
    {
        ProgressRadialBehaviour PRB = ProgressRadialBehaviour.Instance();
        float value = PRB.Value;

        PRB.IncrementValue(5);

        Debug.Log("Add from " + value.ToString());
    }
Exemple #3
0
    void Start()
    {
        radialBar   = GameObject.Find("RadialBar").GetComponent <ProgressRadialBehaviour>();
        ball        = this.gameObject;
        _rigidbody  = GetComponent <Rigidbody> ();
        ballControl = GetComponent <BallControl>();

        Reset();
    }
Exemple #4
0
    IEnumerator Start()
    {
        BarBehaviour = GetComponent <ProgressRadialBehaviour>();
        while (true)
        {
            yield return(new WaitForSeconds(UpdateDelay));

            BarBehaviour.Value = cryptServCS.AES_CxDecipher.percentCompleted;
        }
    }
    // Update is called once per frame
    void Update()
    {
        if (www != null && !www.isDone)
        {
            ProgressRadialBehaviour PRB = ProgressRadialBehaviour.Instance();
            PRB.Value = www.progress * 100f;
        }

        if (Input.GetKeyDown(KeyCode.S))
        {
            StartCoroutine(BeginLoader());
        }
    }
Exemple #6
0
 void OnEnable()
 {
     BarBehaviour = GetComponent <ProgressRadialBehaviour>();
     InvokeRepeating("UpdateDial", 0f, UpdateDelay);
 }