コード例 #1
0
        void FindRequiredElements()
        {
            seqIcon     = Resources.Load <Sprite>("Button Icons/SequenceSprite");
            patIcon     = Resources.Load <Sprite>("Button Icons/PatternSprite");
            expIcon     = Resources.Load <Sprite>("Button Icons/ExperienceSprite");
            errorIcon   = Resources.Load <Sprite>("Button Icons/cancel");
            folderIcon  = Resources.Load <Sprite>("Button Icons/Open Folder");
            processIcon = Resources.Load <Sprite>("Button Icons/cardboard-box");
            copyIcon    = Resources.Load <Sprite>("Button Icons/files");

            ContentContainer        = GameObject.Find("Package Viewer Parent").GetComponent <PopulateContainer>();
            ContentContainer.prefab = Resources.Load <GameObject>("UI/Package Viewer");
            FolderContainer         = GameObject.Find("Folder Elements").GetComponent <PopulateContainer>();
            FolderContainer.prefab  = Resources.Load <GameObject>("UI/Library Element");

            selector      = GameObject.Find("Suit Region Demo").GetComponent <SuitRegionSelectorDemo>();
            greenBox      = GameObject.Find("Haptic Trigger - Green Box").GetComponent <HapticTrigger>();
            greenBoxText  = greenBox.transform.GetChild(0).GetChild(1).GetComponent <Text>();
            ResultDisplay = GameObject.FindObjectOfType <PackagingResults>();
            ResultDisplay.SetVisibility(false);
        }