コード例 #1
0
ファイル: Story.cs プロジェクト: v-exec/Qurotema
    private void randomMessage()
    {
        switch (randomTracker)
        {
        case 0:
            talkTracker = 11;
            break;

        case 1:
            talkTracker = 12;
            break;

        case 2:
            talkTracker = 13;
            break;
        }

        randomTracker++;

        soundSystem.shootSound("sparkles");
        n.flashFeedback();
        if (routine != null)
        {
            StopCoroutine(routine);
        }
        routine = StartCoroutine(PlayText(talkTracker));
    }
コード例 #2
0
    public void makeActive()
    {
        active = true;

        Sprite t = s.monolithTexts[s.monolithsRead];

        s.monolithActivated();
        image.material.SetTexture("_MainTex", t.texture);
        image.sprite = t;

        GetComponent <Renderer>().enabled      = true;
        tear.GetComponent <Renderer>().enabled = true;
        canvas.alpha = 1f;

        soundSystem.addEnergy(5f);
        soundSystem.shootSound("sparkles");

        n.flashFeedback();
    }