// Use this for initialization void Start() { startTime = 230.0F; //startTime = 40.0F; timeRemaining = startTime; GameObject bar = GameObject.FindGameObjectWithTag("Bar"); barbar = bar.GetComponent <ProgressBar.ProgressBarBehaviour>(); }
// Use this for initialization void Start () { startTime = 230.0F; //startTime = 40.0F; timeRemaining = startTime; GameObject bar = GameObject.FindGameObjectWithTag("Bar"); barbar = bar.GetComponent<ProgressBar.ProgressBarBehaviour>(); }
// Use this for initialization void Start () { dashButton = dashButtonGUI.GetComponentInChildren<ProgressRadialBehaviour>(); dashButton.ProgressSpeed = dashProgressSpeed; dashButton.IncrementValue(100f); attackButton = attackButtonGUI.GetComponentInChildren<ProgressRadialBehaviour>(); attackButton.ProgressSpeed = attackProgressSpeed; attackButton.IncrementValue(100f); shootButton = shootButtonGUI.GetComponentInChildren<ProgressRadialBehaviour>(); shootButton.ProgressSpeed = shootProgressSpeed; shootButton.IncrementValue(100f); jumpButton = jumpButtonGUI.GetComponentInChildren<ProgressRadialBehaviour>(); jumpButton.ProgressSpeed = jumpProgressSpeed; jumpButton.IncrementValue(100f); shrinkMeter = ShrinkMeterGUI.GetComponent<ProgressBarBehaviour>(); shrinkMeter.ProgressSpeed = shrinkProgressSpeed; shrinkMeter.IncrementValue(100f); }
// Use this for initialization void Start () { state = Camera.main.GetComponent<GameState>(); bar = gameObject.GetComponent<ProgressBarBehaviour>(); }
void Start() { this.myRigidbody = this.GetComponent<Rigidbody>(); sources = GetComponentsInChildren<AudioSource>(); explosion_source = this.transform.FindChild("ExplosionAudio").GetComponent<AudioSource>(); this.hpProgressBar = this.GetComponentInChildren<ProgressBarBehaviour>(); this.maxHitPoints = hitPoints; }
void Start() { this.navAgent = this.GetComponent<NavMeshAgent> (); source = GetComponentInChildren<AudioSource>(); explosion_source = this.transform.FindChild("ExplosionAudio").GetComponent<AudioSource>(); this.hpProgressBar = this.GetComponentInChildren<ProgressBarBehaviour>(); this.maxHitPoints = this.hitPoints; }
void Start( ) { rage = null; progressBar = null; random = new System.Random ( ); ResetDifficulty (); if ( rage == null && GameObject.Find ( "RagePanel" ) ) { rage = GameObject.Find ( "RagePanel" ).GetComponent<RagePanelController> ( ); progressBar = GameObject.Find ( "ProgressBarLabelRight" ).GetComponent<ProgressBarBehaviour> ( ); player = GameObject.Find ( "Player" ).GetComponent<PlayerControl> ( ); } //gamejolt API if (GameJolt.API.Manager.Instance.CurrentUser != null) { //user is logged } else { //user is not logged } }
void Awake( ) { if ( _instance == null ) { //If I am the first instance, make me the Singleton _instance = this; DontDestroyOnLoad ( this ); } else { //If a Singleton already exists and you find //another reference in scene, destroy it! if ( this != _instance ) Destroy ( this.gameObject ); } if ( rage == null && GameObject.Find ( "RagePanel" ) ) { rage = GameObject.Find ( "RagePanel" ).GetComponent<RagePanelController> ( ); progressBar = GameObject.Find ( "ProgressBarLabelRight" ).GetComponent<ProgressBarBehaviour> ( ); player = GameObject.Find ( "Player" ).GetComponent<PlayerControl> ( ); } }
// Use this for initialization void Start() { DatosGuardados = new Stack<GameObject>(); DatosPendientes = new List<GameObject>(); DatosActuales = new GameObject[4]; Desplazado = false; pbb1 = Grafica1.GetComponent<ProgressBarBehaviour>(); pbb2 = Grafica2.GetComponent<ProgressBarBehaviour>(); pbb3 = Grafica3.GetComponent<ProgressBarBehaviour>(); pbb4 = Grafica4.GetComponent<ProgressBarBehaviour>(); }
// Use this for initialization void Start() { this.progressBar = progressBarObject.GetComponent<ProgressBar.ProgressBarBehaviour>(); }