コード例 #1
0
ファイル: InspectionUIMgr.cs プロジェクト: ztl19930409/AR
 // Use this for initialization
 void Start()
 {
     dialogBox      = GameObject.Find("Canvas3D/DialogBox").GetComponent <DialogBox>();
     submitBtn      = GameObject.Find("Canvas3D/SubmitBtn").transform;
     mouseIcon2D    = GameObject.Find("Canvas2D/MouseIcon");
     mouseIcon3D    = GameObject.Find("Canvas3D/Mouse").transform;
     mouseCountDown = GameObject.Find("Canvas3D/Mouse/MouseCountDown").GetComponent <UIEffects>();
     initSubmitPose = submitBtn.localPosition;
     holoGrid       = Items.GetComponent <HoloGrid>();
     itemsRootTran  = Items.transform;
 }
コード例 #2
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>();
    }
コード例 #3
0
 void Update()
 {
     //Force uppercase and create generate characters for shuffle visual effect.
     Instance.answerLabel.text = Instance.answerLabel.text.Length > 0 ? Instance.answerLabel.text.ToUpper() : "";
     UIEffects.shuffleRandomString();
 }
コード例 #4
0
ファイル: UIEffects.cs プロジェクト: Qarian/Bloody-Hood
 void Awake()
 {
     singleton = this;
 }