Exemplo n.º 1
0
Arquivo: Ofen.cs Projeto: made3/gtaut
 // Use this for initialization
 void Start()
 {
     globalStartColor = directionalLight.color;
     stopwatch        = new Stopwatch();
     tmpDamageTime    = timeToBurn;
     gameManager      = GameObject.FindGameObjectWithTag("GameController").GetComponent <EvilOven_GameManager>();
     currentIntensity = ofenLight.intensity;
     nextIntensity    = Random.Range(80, 220);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     gameManager    = GameObject.FindGameObjectWithTag("GameController").GetComponent <EvilOven_GameManager>();
     maxHP         /= 100;
     currentHP      = maxHP;
     sliderHP.value = currentHP;
     navAgent       = GetComponent <NavMeshAgent>();
     animator       = GetComponent <Animator>();
     focusedEnemy   = null;
 }
Exemplo n.º 3
0
    // Use this for initialization
    public void Start()
    {
        nameUI         = localCanvas.GetComponentInChildren <Text>();
        sliderHP       = localCanvas.GetComponentInChildren <Slider>();
        fill           = localCanvas.GetComponentsInChildren <Image>()[1];
        splatterParent = GameObject.Find("EnemyParticles");
        player         = GameObject.Find("Player");

        gameManager      = GameObject.FindGameObjectWithTag("GameController").GetComponent <EvilOven_GameManager>();
        damageOut       /= 100;
        damageIn        /= 100;
        tmpAttackingTime = 0;
        nameGen          = gameObject.AddComponent <NameGenerator>();
        navAgent         = GetComponent <NavMeshAgent>();
        animator         = GetComponent <Animator>();
        startPosition    = transform.position;
        goHomeTimer      = new Stopwatch();
        attackingTime    = new Stopwatch();
        timeToGoHome    *= 1000;
        maxHP           /= 100;
        currentHP        = maxHP;
        sliderHP.value   = maxHP;
        rotation         = sliderHP.transform.rotation;
    }