예제 #1
0
    // Good lord.
    void OnMouseDown()
    {
        if (itemsCollectible)
        {
            switch (this.name)
            {
            case "Dodo":
                if (storyManager.getKitePrint())
                {
                    this.GetComponent <DodoController>().startDodoSpeech();
                }
                break;

            case GizmoPrefabs.StringName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(KiteBuilder.STRING, GizmoPrefabs.StringName);
                buildKite.CollectPiece();
                StartCoroutine(acquireThisPart());
                break;

            case GizmoPrefabs.ClothName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(KiteBuilder.CLOTH, GizmoPrefabs.ClothName);
                buildKite.CollectPiece();
                StartCoroutine(acquireThisPart());
                break;

            case GizmoPrefabs.StrawName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(KiteBuilder.LONG_ROD, GizmoPrefabs.StrawName);
                buildKite.CollectPiece();
                StartCoroutine(acquireThisPart());
                break;

            case GizmoPrefabs.PenName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(KiteBuilder.SHORT_ROD, GizmoPrefabs.PenName);
                buildKite.CollectPiece();
                StartCoroutine(acquireThisPart());
                break;
            }
        }

        if (SwipeCamera.allowClicks && this.name == "Dodo")
        {
            if (storyManager.getKitePrint())
            {
                storyManager.meetDodo();
                this.GetComponent <DodoController> ().startDodoSpeech();
            }
        }
        else
        {
            if (storyManager.inventory.HaveAllKiteParts())
            {
                buildKite.Activate();
            }
        }
    }
예제 #2
0
    // Good lord.
    void OnMouseDown()
    {
        if (itemsCollectible && GameManagerManager.forestProgression.haveSlingshotPrint())
        {
            switch (this.name)
            {
            case "Dodo":
                break;

            case GizmoPrefabs.RulerName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(SlingShotBuilder.RULER, GizmoPrefabs.RulerName);
                buildSlingshot.CollectPiece();
                StartCoroutine(acquireThisPart());
                dodo.DodoApproval();
                break;

            case GizmoPrefabs.ElasticName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(SlingShotBuilder.ELASTIC, GizmoPrefabs.ElasticName);
                buildSlingshot.CollectPiece();
                StartCoroutine(acquireThisPart());
                dodo.DodoApproval();
                break;

            case GizmoPrefabs.VStickName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(SlingShotBuilder.V_STICK, GizmoPrefabs.VStickName);
                buildSlingshot.CollectPiece();
                MakeBirdFly();
                StartCoroutine(acquireThisPart());
                dodo.DodoApproval();
                break;

            case GizmoPrefabs.RopeName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(SlingShotBuilder.ROPE, GizmoPrefabs.RopeName);
                buildSlingshot.CollectPiece();
                StartCoroutine(acquireThisPart());
                dodo.DodoApproval();
                break;
            }
        }

        if (SwipeCamera.allowClicks && this.name == "Dodo")
        {
            if (storyManager.getKitePrint())
            {
                storyManager.meetDodo();
                this.GetComponent <DodoController> ().startDodoSpeech();
            }
        }
        else
        {
            if (storyManager.inventory.HaveAllSlingshotParts())
            {
                buildSlingshot.Activate();
            }
        }
    }
예제 #3
0
    // Good lord.
    void OnMouseDown()
    {
        if (itemsCollectible && GameManagerManager.forestProgression.haveBanjoPrint() && CliffProgression.canBeginLevel)
        {
            switch (this.name)
            {
            case GizmoPrefabs.Vine1Name:
                itemsCollectible = false;
                storyManager.inventory.AddPart(BanjoBuilder.RUBBERBAND, GizmoPrefabs.Vine1Name);
                buildBanjo.CollectPiece();
                StartCoroutine(acquireThisPart(false));
                break;

            case GizmoPrefabs.Vine2Name:
                itemsCollectible = false;
                storyManager.inventory.AddPart(BanjoBuilder.RUBBERBAND, GizmoPrefabs.Vine2Name);
                buildBanjo.CollectPiece();
                StartCoroutine(acquireThisPart(false));
                break;

            case GizmoPrefabs.Vine3Name:
                itemsCollectible = false;
                storyManager.inventory.AddPart(BanjoBuilder.RUBBERBAND, GizmoPrefabs.Vine3Name);
                buildBanjo.CollectPiece();
                StartCoroutine(acquireThisPart(false));
                break;

            case GizmoPrefabs.PaperTowelRollName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(BanjoBuilder.POLE, GizmoPrefabs.PaperTowelRollName);
                storyManager.collectPaperTowelRoll();
                buildBanjo.CollectPiece();
                StartCoroutine(acquireThisPart(false));
                break;

            case GizmoPrefabs.TissueBoxName:
                itemsCollectible = false;
                storyManager.inventory.AddPart(BanjoBuilder.BOX, GizmoPrefabs.TissueBoxName);
                buildBanjo.CollectPiece();
                StartCoroutine(acquireThisPart(false));
                break;
            }

            if (storyManager.inventory.HaveAllBanjoParts())
            {
                buildBanjo.Activate();
            }
        }
    }