private void Awake() { encounterConstants = FindObjectOfType <EncounterConstants>(); noteGeneratorManager = FindObjectOfType <NoteGeneratorManager>(); PlayerColors = encounterConstants.PlayerColors; int index = 0; knobCount = PlayerColors.Length; playerSprites = playerLabels.GetComponentsInChildren <Image>(true); moveSprites = moveLabels.GetComponentsInChildren <Image>(true); foreach (Image labelSprite in playerSprites) { if (index < PlayerColors.Length) { labelSprite.gameObject.SetActive(true); } else { labelSprite.gameObject.SetActive(false); } index++; } }
void Start() { encounterConstants = FindObjectOfType <EncounterConstants>(); noteGeneratorManager = FindObjectOfType <NoteGeneratorManager>(); hypeValue = encounterConstants.HypeValueStart; hypeValueMax = encounterConstants.HypeValueMax; audioManager = FindObjectOfType <AudioManager>(); hypeBar.transform.DOScaleY(hypeValue / hypeValueMax, 0); hypeBar.DOFade(0.5f, 0); }
// Start is called before the first frame update void Start() { encounterConstants = FindObjectOfType <EncounterConstants>(); selectorImage = this.GetComponent <Image>(); noteGenManager = FindObjectOfType <NoteGeneratorManager>(); }
void Awake() { encounterConstants = FindObjectOfType <EncounterConstants>(); noteGenManager = FindObjectOfType <NoteGeneratorManager>(); }