コード例 #1
0
ファイル: TimeLimit_script.cs プロジェクト: Bnaga/HKUgame
    // Use this for initialization
    void Start()
    {
        startTime = 230.0F;
        //startTime = 40.0F;
        timeRemaining = startTime;
        GameObject bar = GameObject.FindGameObjectWithTag("Bar");

        barbar = bar.GetComponent <ProgressBar.ProgressBarBehaviour>();
    }
コード例 #2
0
ファイル: TimeLimit_script.cs プロジェクト: Bnaga/HKUgame
	// Use this for initialization
	void Start ()
    {
        startTime = 230.0F;
        //startTime = 40.0F;
        timeRemaining = startTime;
        GameObject bar = GameObject.FindGameObjectWithTag("Bar");
        barbar = bar.GetComponent<ProgressBar.ProgressBarBehaviour>();
        
    }
コード例 #3
0
	// 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);

	}
コード例 #4
0
	// Use this for initialization
	void Start () {
        state = Camera.main.GetComponent<GameState>();
        bar = gameObject.GetComponent<ProgressBarBehaviour>();
	}
コード例 #5
0
 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;
 }
コード例 #6
0
 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;
 }
コード例 #7
0
    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
        }
    }
コード例 #8
0
 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> ( );
     }
 }
コード例 #9
0
 // 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>();
 }
コード例 #10
0
 // Use this for initialization
 void Start()
 {
     this.progressBar = progressBarObject.GetComponent<ProgressBar.ProgressBarBehaviour>();
 }