// Use this for initialization
    void Start()
    {
        localPos   = transform.localScale;
        localRot   = transform.localRotation;
        localScale = transform.localScale;

        pickupSoundList = pickupData.PickupSound;
        throwSoundList  = pickupData.ThrowSound;

        ecoLocationAudioSource = GetComponent <EcoLocationAudioSource>();
    }
 // Use this for initialization
 private void Start()
 {
     m_CharacterController = GetComponent <CharacterController>();
     m_Camera = Camera.main;
     m_OriginalCameraPosition = m_Camera.transform.localPosition;
     m_FovKick.Setup(m_Camera);
     m_HeadBob.Setup(m_Camera, m_StepInterval);
     m_StepCycle   = 0f;
     m_NextStep    = m_StepCycle / 2f;
     m_Jumping     = false;
     m_AudioSource = GetComponent <EcoLocationAudioSource>();
     m_MouseLook.Init(transform, m_Camera.transform);
 }
        // Use this for initialization
        void Start()
        {
            GetComponent <MonsterEchoMeshSpawner>().MonsterState = MonsterState.Patrol;
            agent          = GetComponent <NavMeshAgent>();
            checkpointList = GameObject.FindGameObjectsWithTag("Waypoint");
            previousTarget = 0;
            currentTarget  = GetClosestWaypoint();
            var nextPath = (checkpointList[currentTarget].GetComponent("Waypoint") as Waypoint).GetNextPath(checkpointList[previousTarget].transform);

            agent.SetDestination(nextPath.transform.position);
            echoSound = this.GetComponent <EcoLocationAudioSource>();
            GameManager.Instance.RegisterMonster(this);
            MonsterAmbientSounds = MonsterAmbientSoundContainer.ListOfSounds;
            MonsterChaseSounds   = MonsterChaseSoundContainer.ListOfSounds;
            audioSource          = this.GetComponent <AudioSource>();
        }
Exemplo n.º 4
0
 private void Start()
 {
     echoAudioSource = GetComponent <EcoLocationAudioSource>();
     UpdateTimeUntilNextSound();
 }
 private void Start()
 {
     echoAudioSource   = GetComponent <EcoLocationAudioSource>();
     timeUntilNextEcho = delayBetweenEchos;
 }
Exemplo n.º 6
0
 private void Start()
 {
     lockedSounds           = lockSounds.ThrowSound;
     unlockedSounds         = lockSounds.PickupSound;
     ecoLocationAudioSource = GetComponent <EcoLocationAudioSource>();
 }