コード例 #1
0
    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++;
        }
    }
コード例 #2
0
    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);
    }
コード例 #3
0
 // Start is called before the first frame update
 void Start()
 {
     encounterConstants = FindObjectOfType <EncounterConstants>();
     selectorImage      = this.GetComponent <Image>();
     noteGenManager     = FindObjectOfType <NoteGeneratorManager>();
 }
コード例 #4
0
 void Awake()
 {
     encounterConstants = FindObjectOfType <EncounterConstants>();
     noteGenManager     = FindObjectOfType <NoteGeneratorManager>();
 }