Exemplo n.º 1
0
 void Start()
 {
     _gameManager       = FindObjectOfType <GameManager>();
     _audioManager      = AudioManager.instance;
     _professionalMenu  = GetComponentInParent <ProfessionalsMenu>();
     _professionalCount = ProfessionalCount;
     //scrollRect = FindObjectOfType<Canvas>().GetComponent<ScrollRect> ();
 }
Exemplo n.º 2
0
 void Start()
 {
     _gameManager = FindObjectOfType <GameManager>();
     TheProfMenu  = FindObjectOfType <ProfessionalsMenu>();
     PM           = FindObjectOfType <ProfessionalsMenu>();
     _otherTargetLocs.AddRange(FindObjectsOfType <TargetLocation>());
     _otherTargetLocs.Remove(this);
     defaultColor     = spriteRenderer.color;
     audioSource      = gameObject.AddComponent <AudioSource>();
     audioSource.clip = Resources.Load(name) as AudioClip;
     audioSource.Play();
     UpdateColor(1 - ((STIRate + TeenPregRate + CrimeRate) / 300));
     UpdateGlow();
 }
Exemplo n.º 3
0
 //Instantiation Logic
 private void Start()
 {
     //if GameManager.DoTutorial
     ShowPopUp("TryLocation", 1);
     ProfMenu = FindObjectOfType <ProfessionalsMenu>();
 }
 void Start()
 {
     _gameManager = FindObjectOfType<GameManager>();
     PM = FindObjectOfType<ProfessionalsMenu>();
     _otherTargetLocs.AddRange(FindObjectsOfType<TargetLocation>());
     _otherTargetLocs.Remove(this);
     defaultColor = spriteRenderer.color;
     audioSource = gameObject.AddComponent<AudioSource>();
     audioSource.clip = Resources.Load(name) as AudioClip;
     audioSource.Play();
 }