コード例 #1
0
    private void Awake()
    {
        player            = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerCharacter>();
        playerCharacterUI = GameObject.FindGameObjectWithTag("CharacterCanvas").GetComponentInChildren <PlayerCharacterUI>();

        gainsUI = GameObject.FindGameObjectWithTag("GainsCanvas").GetComponent <GainsUI>();

        skillsUI = GameObject.FindGameObjectWithTag("SkillCanvas").GetComponentInChildren <SkillsUI>();

        inventoryUI = GameObject.FindGameObjectWithTag("InventoryCanvas").GetComponentInChildren <InventoryUI>();

        uiEffects           = GameObject.FindGameObjectWithTag("EffectsCanvas").GetComponent <UIEffects>();
        dialogueSelectionUI = GameObject.FindGameObjectWithTag("DialogueCanvas").GetComponentInChildren <DialogueSelectionUI>();
        actualDialogueUI    = GameObject.FindGameObjectWithTag("DialogueCanvas").GetComponentInChildren <DialogueUI>();

        questUI = GameObject.FindGameObjectWithTag("QuestCanvas").GetComponentInChildren <QuestUI>();
    }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     gainsUI = GetComponentInParent <GainsUI>();
 }