// Start is called before the first frame update void Start() { wp = GameObject.FindGameObjectWithTag("Weaponspanel").GetComponent <Weaponspanel>(); damageCalc = gameObject.GetComponent <damageCalculate>(); axAnimatior = GameObject.FindGameObjectWithTag("Ax").GetComponent <Animator>(); ax.gameObject.GetComponent <MeshRenderer>().enabled = false; }
// Start is called before the first frame update void Start() { countDown = delay; damageCalc = GameObject.FindGameObjectWithTag("Player").GetComponent <damageCalculate>(); AS = gameObject.GetComponent <AudioSource>(); AS.Play(); StartCoroutine("healthDecrease"); }
// Start is called before the first frame update void Start() { damageCalc = gameObject.GetComponent <damageCalculate>(); winning = GameObject.FindGameObjectWithTag("win").GetComponent <win>(); if (Random.Range(0, 2) == 0) { transform.position = position1; beginning = false; } else { transform.position = position2; beginning = false; } // it hides and locks the curser during the game mode Cursor.lockState = CursorLockMode.Locked; }
// Start is called before the first frame update void Start() { damageCalc = transform.GetComponent <damageCalculate>(); temp = waitingTime; }
private void Start() { DC = GameObject.FindGameObjectWithTag("Player").GetComponent <damageCalculate>(); CPC = GameObject.FindGameObjectWithTag("collectablesPanel").GetComponent <collectablesPanelController>(); wp = GameObject.FindGameObjectWithTag("Weaponspanel").GetComponent <Weaponspanel>(); }
// Start is called before the first frame update void Start() { damageCalc = GameObject.FindGameObjectWithTag("Player").GetComponent <damageCalculate>(); GameObject.FindGameObjectWithTag("Music").GetComponent <AudioSource>().Stop(); mc = GameObject.FindGameObjectWithTag("Music").GetComponent <musicController>(); }