GONE









How do I use G O N E
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: DialogUnity.cs Copy
13         public void setDialogOne(DialogButton dialogOK)
14         {
15             buttons.setButtonNumber(1);
16             buttons.buttonX.GetComponent
File name: ShopScreen.cs Copy
45     public void Start()
46     {
47         InputController.Name = InputNames.SHOP;
48
49         bgObject.GetComponent().sprite = Resources.Load("Textures/bg" + (Attr.currentWorld + 1));
50
51         animalNames = new string[] { "dog", "monkey", "pig", "fox", "giraffe", "panda", "rhino", "tiger", "elephant", "lion" };
52         animalName.setFont(nameFont);
53         //animalUnlock = Data.getData(Data.KEY_ANIMAL_UNLOCK);
54
55         updateAnimalName();
56
57         starLabel.setFont(shopFont);
58         totalStar = 0;
59         for (int i = 0; i < 60; i++)
60         {
61             totalStar += Data.getData(Data.KEY_STAR + i);
62         }
63         starLabel.setText("" + totalStar, 0, 0);
64         goldLabel.setFont(shopFont);
65         UpdateCoin();
66
67         upgradeLayer.setFont(shopFont);
68         upgradeLayer.setUpgradeInfo(upgradeInfo);
69         upgradeLayer.UpdateUI(1);
70         upgradeLayer.UpdateUI(0);
71
72         buyLayer.setFont(shopFont);
73         updateUI();
74
75         {
76             dialog = (GameObject)Instantiate(dialog);
77             DialogUnity dialogUnity = dialog.GetComponent();
78             //dialogUnity.setText("Do you want to play", "game without skills?");
79             dialogUnity.setDialogOne(delegate() {
80                 InputController.Name = InputNames.SHOP;
81             });
82         }
83
84         ARController.setBannerVisible(false);
85         ARController.showInterstitialAd();
86     }

GONE 166 lượt xem

Gõ tìm kiếm nhanh...