private void Start() { GameObject player = GameObject.Find("Player"); playerControl = player.GetComponent <PlayerControl>(); playerStatus = player.GetComponent <PlayerStatusfixed>(); weaponMusic = GetComponent <WeaponMusic>(); }
private void Start() { anim = GetComponent <Animator>(); playerControl = GameObject.Find("Player").GetComponent <PlayerControl>(); playerStatus = GameObject.Find("Player").GetComponent <PlayerStatusfixed>(); weaponMusic = GetComponent <WeaponMusic>(); timeRecord = Time.time; }
private void Start() { //anim = GetComponent<Animator>(); //stateInfo = anim.GetCurrentAnimatorStateInfo(0); playerControl = GameObject.Find("Player").GetComponent <PlayerControl>(); playerStatus = GameObject.Find("Player").GetComponent <PlayerStatusfixed>(); weaponMusic = GetComponent <WeaponMusic>(); }
// Use this for initialization private void Start() { healthSlider = gameObject.GetComponent <Slider>(); healthSlider.maxValue = maxHealth; textShow = GameObject.Find("healthTextShow").GetComponent <Text>(); FillArea = GameObject.Find("healthSlider/Fill Area").GetComponent <RectTransform>(); playerStatus = GameObject.Find("Player").GetComponent <PlayerStatusfixed>(); healthSlider.enabled = false; healthSlider.maxValue = playerStatus.GetMaxHealth(); }
private void Start() { playerStatus = GameObject.Find("Player").GetComponent <PlayerStatusfixed>(); }