Exemplo n.º 1
0
 private void Awake()
 {
     gameManager  = GameObject.Find("GameManager").GetComponent <fishingGameManager>();
     uiManager    = FindObjectOfType <fishingUIManager>();
     audioManager = GameObject.Find("AudioManager").GetComponent <AudioManager>();
     failSound    = audioManager.GetSource("GotHit");
 }
Exemplo n.º 2
0
 private void Awake()
 {
     //Application.targetFrameRate = 60;
     QualitySettings.vSyncCount = 2;
     uiManager    = GameObject.Find("Canvas").GetComponent <fishingUIManager>();
     timerText    = TimerTextUI.GetComponentInChildren <TextMeshProUGUI>();
     audioManager = GameObject.Find("AudioManager").GetComponent <AudioManager>();
 }