コード例 #1
0
    // Shop Upgrades
    // 1-3 Opens 1 more crate
    // 4 unlocks casino scog lotto
    // 5 luck tweaked
    // 6 retro game
    // 7 unlocks player 1 z ground
    // 8 achievement (cali or bust)
    // 9 secondary shop

    // Use this for initialization
    void Start()
    {
        UpgradeList = new List <GameObject> ();
        SU          = GameObject.FindGameObjectWithTag("ShopUnlocked").GetComponent <ShopUnlocked> ();
        SC          = GameObject.FindGameObjectWithTag("Currency").GetComponent <ShopCurrency> ();
        IC          = GameObject.FindGameObjectWithTag("InventoryController").GetComponent <InventoryController> ();
        SetupUpgrades();
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        IC = GameObject.FindGameObjectWithTag("InventoryController").GetComponent <InventoryController> ();
        SC = GameObject.FindGameObjectWithTag("Currency").GetComponent <ShopCurrency> ();
        Button btn = GetComponent <Button> ();

        btn.onClick.AddListener(Gamble);
    }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        // Linking
        RDC = GameObject.FindGameObjectWithTag("RecipeDirectoryController").GetComponent <RecipeDirectoryController>();
        IC  = GameObject.FindGameObjectWithTag("InventoryController").GetComponent <InventoryController> ();
        LC  = GameObject.FindGameObjectWithTag("LabController").GetComponent <LabController> ();
        SC  = GameObject.FindGameObjectWithTag("Currency").GetComponent <ShopCurrency> ();

        SlotOne = GameObject.FindGameObjectWithTag("RightPanel").transform.GetChild(0).gameObject;
        SlotTwo = GameObject.FindGameObjectWithTag("RightPanel").transform.GetChild(2).gameObject;

        Button btn = GetComponent <Button> ();

        btn.onClick.AddListener(Merge);
    }