private void Awake() { spawnManager = SpawnMANAGER.Instance; myInteraction = GetComponent <Interaction>(); activePortes = new bool[myInteraction.Portes.Length]; }
private void Awake() { spawnManager = SpawnMANAGER.Instance; myDoubleInteraction = GetComponent <DoubleInteraction>(); mySaveInteractions = GetComponentsInChildren <SaveInteraction>(); activePortes = new bool[myDoubleInteraction.Portes.Length]; }
private void Awake() //AWAKE { managerPlayers = ManagerPlayers.Instance; spawnManager = SpawnMANAGER.Instance; SM = SoundManager.Instance; NavPlayer = GetComponent <NavMeshAgent>(); AnimPlayer = GetComponentInChildren <Animator>(); }
// Start is called before the first frame update void Awake() { viewMeshFilter = transform.GetChild(0).GetComponent <MeshFilter>(); viewMeshFilter2 = transform.GetChild(1).GetComponent <MeshFilter>(); viewMeshFilter3 = transform.GetChild(2).GetComponent <MeshFilter>(); myNavMeshAgent = GetComponent <NavMeshAgent>(); myVoice = transform.GetChild(5).GetComponent <AudioSource>(); myMoveSound = transform.GetChild(6).GetComponent <AudioSource>(); if (myClasse == Classe.Basic) { myAnimator = transform.GetChild(3).GetComponent <Animator>(); myMoveSound.clip = Resources.Load <AudioClip>("Audio/SFXClips/Propulsor"); } else { myAnimator = transform.GetChild(4).GetComponent <Animator>(); myMoveSound.clip = Resources.Load <AudioClip>("Audio/SFXClips/Drone"); } myMoveSound.pitch = Random.Range(0.6f, 1.2F); myMoveSound.PlayDelayed(Random.Range(0f, 0.4f)); SM = SpawnMANAGER.Instance; IAM = IAManager.Instance; SoundM = SoundManager.Instance; MM = MusicManager.Instance; SinglH = Human.Instance; if (!SM.myAIs.Contains(this)) { SM.myAIs.Add(this); } AISpawn(); }
private void Awake() { sm = SpawnMANAGER.Instance; mp = ManagerPlayers.Instance; cm = CanvasManager.Instance; }
private void Awake() { SoundM = SoundManager.Instance; SM = SpawnMANAGER.Instance; myAudiosource = GetComponent <AudioSource>(); }