コード例 #1
0
    // Start is called before the first frame update
    void Awake()
    {
        playerAnimation = GetComponent <CharacterAnimations>();
        shield          = GetComponent <PlayerShield>();

        soundFX = GetComponentInChildren <CharacterSoundFX>();
    }
コード例 #2
0
 // Start is called before the first frame update
 void Awake()
 {
     EnemyAnimations = GetComponent <CharacterAnimations>();
     navagent        = GetComponent <NavMeshAgent>();
     Playertarget    = GameObject.FindGameObjectWithTag("Player").transform;
     soundFX         = GetComponentInChildren <CharacterSoundFX>();
 }
コード例 #3
0
    void Awake()
    {
        enemy_Anim = GetComponent <CharacterAnimations>();
        navAgent   = GetComponent <NavMeshAgent>();

        playerTarget = GameObject.FindGameObjectWithTag(Tags.PLAYER_TAG).transform;
        soundFX      = GetComponentInChildren <CharacterSoundFX>();
    }
コード例 #4
0
ファイル: HealthScripts.cs プロジェクト: sbbhole/Warrior
 // Start is called before the first frame update
 void Awake()
 {
     soundFX = GetComponentInChildren <CharacterSoundFX>();
 }
コード例 #5
0
 void Awake()
 {
     soundFX = GetComponentInChildren <CharacterSoundFX>();    // because player sound is a child of warior and Enemy
 }
コード例 #6
0
 void Start()
 {
     enemyState  = EnemyState.CHASE;
     attackTimer = waitBeforeAttackTime;
     soundFX     = GetComponentInChildren <CharacterSoundFX>();
 }
コード例 #7
0
ファイル: HealthScript.cs プロジェクト: Alpagoat/chaos
 void Awake()
 {
     soundFX         = GetComponentInChildren <CharacterSoundFX>();
     playerAnimation = GetComponent <CharacterAnimations>();
 }
コード例 #8
0
 // Start is called before the first frame update
 void Start()
 {
     controller = GetComponent <CharacterController>();
     anim       = GetComponent <Animator>();
     soundFX    = GetComponentInChildren <CharacterSoundFX>();
 }
コード例 #9
0
 // Start is called before the first frame update
 private void Awake()
 {
     soundFX     = GetComponentInChildren <CharacterSoundFX>();
     totalHealth = health;
 }
コード例 #10
0
 private void Awake()
 {
     soundFx = GetComponentInChildren <CharacterSoundFX>(); // in children because it's attached to player child
 }