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>(); }