void Awake()
    {
        Health = MaxHealth;
        GameObject go = GameObject.Find("HeartsBar");

        healthBar = (GUIBarScript)go.GetComponent(typeof(GUIBarScript));
    }
	// Use this for initialization
	void Start () 
	{
		currentEnergy = startingEnergy;
		if (energyBar != null)
		{
			energyMeter = energyBar.GetComponent<GUIBarScript>();
			energyMeter.Value = (currentEnergy/100f);
		}
	}
Beispiel #3
0
    void Start()
    {
        flagWinLose = false;
        contWinLose = 4f;

        Smoke.SetActive(false);
        Aureola.SetActive(false);

        Win.SetActive(false);
        Lose.SetActive(false);

        scriptAngerOne = AngerOne.GetComponent <GUIBarScript> ();
        scriptAngerTwo = AngerTwo.GetComponent <GUIBarScript> ();

        isBubblePluf   = false;
        contIsJumping  = 1f;
        isjumping      = false;
        ismoving       = false;
        anim           = gameObject.GetComponent <Animator> ();
        targetPosition = transform.position;                    //set the target postion to where we are at the start
    }
 void Start()
 {
     gbs = GetComponent <GUIBarScript>();
 }
 void Start()
 {
     //value = personaje.GetComponent<VidaScript>().vidaPersonaje/100;
     //  Value = personaje.GetComponent<VidaScript>().vidaPersonaje;
     GBS = GetComponent<GUIBarScript>();
 }
 void Start()
 {
     GBS = GetComponent <GUIBarScript>();
 }
 void Start()
 {
     GBS = GetComponent<GUIBarScript>();
 }