Beispiel #1
0
    private void setRockFlag()
    {
        int route    = sVMS.getStoryRoute();
        int progress = sVMS.getStoryProgress();
        int stage    = sVMS.getStoryStage();

        string tmpS = route.ToString() + "-" + progress.ToString() + "-" + stage.ToString();

        //Debug.Log (tmpS);
        int[] tmpIdx;

        switch (tmpS)
        {
        case "0-0-0":
        case "0-1-0":
            tmpIdx = new int[] { 0 };
            this.faceIconLoop(tmpIdx);

            break;

        case "0-2-0":
        case "0-3-0":
        case "0-3-1":
        case "0-4-0":
            tmpIdx = new int[] { 0, 1 };
            this.faceIconLoop(tmpIdx);

            break;
        }
    }
    void Start()
    {
        Debug.Log("In this scene, fastest Start is " + this.name);
        soundManagerGetter.getManager().playBGM(10);

        sVMS = staticValueManagerGetter.getManager();

        int thisStoryRoute    = sVMS.getStoryRoute();
        int thisStoryProgress = sVMS.getStoryProgress();
        int thisStoryStage    = sVMS.getStoryStage();

        //for debug
        //thisStoryProgress = 4;

        Debug.Log("chapter " + thisStoryProgress + " Stage" + thisStoryStage);

        mainFrameScript mainFrameS = this.getParentFrame().GetComponent <mainFrameScript>();

        mainFrameS.createThisList(thisStoryRoute, thisStoryProgress, thisStoryStage);
    }