Esempio n. 1
0
    private void Start()
    {
        GameObject player = GameObject.Find("Player");

        playerControl = player.GetComponent <PlayerControl>();
        playerStatus  = player.GetComponent <PlayerStatusfixed>();
        weaponMusic   = GetComponent <WeaponMusic>();
    }
Esempio n. 2
0
 private void Start()
 {
     anim          = GetComponent <Animator>();
     playerControl = GameObject.Find("Player").GetComponent <PlayerControl>();
     playerStatus  = GameObject.Find("Player").GetComponent <PlayerStatusfixed>();
     weaponMusic   = GetComponent <WeaponMusic>();
     timeRecord    = Time.time;
 }
Esempio n. 3
0
    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>();
    }
Esempio n. 4
0
    // 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>();
 }