private void Start() { originPos = Vector3.zero; audioSource = GetComponent <AudioSource>(); theCrosshair = FindObjectOfType <Crosshair>(); thestatusHP = FindObjectOfType <StatusHP>(); monsterHp1 = FindObjectOfType <MonsterHp1>(); thepig1 = FindObjectOfType <Pig1>(); }
// Start is called before the first frame update void Start() { thePlayerStatus = FindObjectOfType <StatusHP>(); theViewAngle = GetComponent <FieldOfViewAngle>(); nav = GetComponent <NavMeshAgent>(); theAudio = GetComponent <AudioSource>(); currentTime = waitTime; isAction = true; }
private void Start() { originPos = Vector3.zero; audioSource = GetComponent <AudioSource>(); theCrosshair = FindObjectOfType <Crosshair>(); thestatusHP = FindObjectOfType <StatusHP>(); monsterHp1 = FindObjectOfType <MonsterHp1>(); thepig1 = FindObjectOfType <Pig1>(); WeaponManager.currentWeapon = currentGun.GetComponent <Transform>(); WeaponManager.currentWeaponAnim = currentGun.anim; }
void Awake() { statusPower = GameObject.Find("PowerValueText").GetComponent <StatusPower>(); statusDefence = GameObject.Find("DefenceValueText").GetComponent <StatusDefence>(); statusSpeed = GameObject.Find("SpeedValueText").GetComponent <StatusSpeed>(); statusHP = GameObject.Find("HPValueText").GetComponent <StatusHP>(); statusMP = GameObject.Find("MPValueText").GetComponent <StatusMP>(); statusLevel = GameObject.Find("LevelValueText").GetComponent <StatusLevel>(); statusPlayerName = GameObject.Find("PlayerNameText").GetComponent <StatusPlayerName>(); statusPlayerImage = GameObject.Find("PlayerImage").GetComponent <StatusPlayerImage>(); command04Display = GameObject.Find("BackGround04").GetComponent <Command04Display>(); }
private void Start() { thePlayerStatus = FindObjectOfType <StatusHP>(); }
void Awake() { statusHP = GameObject.Find("HPValueText").GetComponent <StatusHP>(); statusMP = GameObject.Find("MPValueText").GetComponent <StatusMP>(); }