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()); }
void Start() { radialBar = GameObject.Find("RadialBar").GetComponent <ProgressRadialBehaviour>(); ball = this.gameObject; _rigidbody = GetComponent <Rigidbody> (); ballControl = GetComponent <BallControl>(); Reset(); }
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()); } }
void OnEnable() { BarBehaviour = GetComponent <ProgressRadialBehaviour>(); InvokeRepeating("UpdateDial", 0f, UpdateDelay); }