Ejemplo n.º 1
0
    public void Click()
    {
        safeNum569 = GetComponent<SafeNum569>();
        safeNum569.count = 0;

        FlagManager.Instance.flags [111] = false;
        FlagManager.Instance.flags [112] = false;
        FlagManager.Instance.flags [113] = false;
        FlagManager.Instance.flags [114] = false;
        FlagManager.Instance.flags [115] = false;
        FlagManager.Instance.flags [116] = false;
        FlagManager.Instance.flags [100] = false;

        score.text = "";

        GameObject gameObjectPlayer1 = this.transform.Find ("PlayerNormal").gameObject;
        GameObject gameObjectPlayer2 = this.transform.Find ("PlayerNaki").gameObject;
        GameObject gameObjectPlayer3 = this.transform.Find ("PlayerOdoroki").gameObject;
        GameObject gameObjectPlayer4 = this.transform.Find ("PlayerKyohu").gameObject;
        GameObject gameObjectPlayer5 = this.transform.Find ("PlayerWarai").gameObject;

        gameObjectPlayer1.SetActive(true);
        gameObjectPlayer2.SetActive(false);
        gameObjectPlayer3.SetActive(false);
        gameObjectPlayer4.SetActive(false);
        gameObjectPlayer5.SetActive(false);

        FlagManager.Instance.flags [9] = false;

        FlagManager.Instance.flags [8] = false;
        FlagManager.Instance.flags [18] = false;
        FlagManager.Instance.flags [106] = false;
    }
Ejemplo n.º 2
0
    public void Click()
    {
        safeNum569 = GetComponent<SafeNum569>();

        if (safeNum569.count == 0 || safeNum569.count == 2)
        {
            FlagManager.Instance.flags [111] = false;
            FlagManager.Instance.flags [112] = false;
            FlagManager.Instance.flags [113] = false;
            FlagManager.Instance.flags [114] = false;
            FlagManager.Instance.flags [115] = false;
            FlagManager.Instance.flags [116] = false;
            FlagManager.Instance.flags [100] = false;
            safeNum569.count++;
        }

        else if (safeNum569.count == 1 && FlagManager.Instance.flags [111] == false && FlagManager.Instance.flags [112] == true)
        {
            FlagManager.Instance.flags [113] = false;
            FlagManager.Instance.flags [114] = true;
            FlagManager.Instance.flags [115] = false;
            safeNum569.count++;
        }

        else if (safeNum569.count == 3 && safeNum569.overcount != 4)
        {
            score.text = "数字が違うみたいだ。\n";

            FlagManager.Instance.flags [111] = false;
            FlagManager.Instance.flags [112] = false;
            FlagManager.Instance.flags [113] = false;
            FlagManager.Instance.flags [114] = false;
            FlagManager.Instance.flags [115] = false;
            FlagManager.Instance.flags [116] = false;
            FlagManager.Instance.flags [100] = false;

            safeNum569.count = 0;
            safeNum569.overcount++;

            GameObject gameObjectPlayer1 = this.transform.Find ("PlayerNormal").gameObject;
            GameObject gameObjectPlayer2 = this.transform.Find ("PlayerNaki").gameObject;
            GameObject gameObjectPlayer3 = this.transform.Find ("PlayerOdoroki").gameObject;
            GameObject gameObjectPlayer4 = this.transform.Find ("PlayerKyohu").gameObject;
            GameObject gameObjectPlayer5 = this.transform.Find ("PlayerWarai").gameObject;

            gameObjectPlayer1.SetActive (true);
            gameObjectPlayer2.SetActive (false);
            gameObjectPlayer3.SetActive (false);
            gameObjectPlayer4.SetActive (false);
            gameObjectPlayer5.SetActive (false);

            FlagManager.Instance.flags [9] = false;

            FlagManager.Instance.flags [8] = false;
            FlagManager.Instance.flags [18] = false;
            FlagManager.Instance.flags [106] = false;

            GameObject gameObjectsafe = this.transform.Find ("safe").gameObject;
            gameObjectsafe.SetActive (false);
        }

        else if (safeNum569.count == 3 && safeNum569.overcount == 4)
        {
            score.text = "そういえばお腹すいたな…\n全然、食べ物も見つからないし…\nだめだ…もう寝よう……";

            safeNum569.count = 0;
            safeNum569.overcount++;

            GameObject gameObjectPlayer1 = this.transform.Find ("PlayerNormal").gameObject;
            GameObject gameObjectPlayer2 = this.transform.Find ("PlayerNaki").gameObject;
            GameObject gameObjectPlayer3 = this.transform.Find ("PlayerOdoroki").gameObject;
            GameObject gameObjectPlayer4 = this.transform.Find ("PlayerKyohu").gameObject;
            GameObject gameObjectPlayer5 = this.transform.Find ("PlayerWarai").gameObject;

            gameObjectPlayer1.SetActive (true);
            gameObjectPlayer2.SetActive (false);
            gameObjectPlayer3.SetActive (false);
            gameObjectPlayer4.SetActive (false);
            gameObjectPlayer5.SetActive (false);

            GameObject gameObjectsafe = this.transform.Find ("safe").gameObject;
            gameObjectsafe.SetActive (false);

            FlagManager.Instance.flags [18] = false;
            FlagManager.Instance.flags [106] = false;

            Debug.Log ("BAD");

            Invoke ("BAD",5.5f);
        }

        else
        {
            FlagManager.Instance.flags [111] = false;
            FlagManager.Instance.flags [112] = false;
            FlagManager.Instance.flags [113] = false;
            FlagManager.Instance.flags [114] = false;
            FlagManager.Instance.flags [115] = false;
            FlagManager.Instance.flags [116] = false;
            FlagManager.Instance.flags [100] = false;
            safeNum569.count++;
        }
    }
Ejemplo n.º 3
0
    public void SceneLoad()
    {
        Application.LoadLevel ("piroro-gu");

        safeNum569 = GetComponent<SafeNum569>();

        safeNum569.count = 0;
        safeNum569.overcount = 0;

        FlagManager.Instance.flags [0] = false;
        FlagManager.Instance.flags [1] = false;
        FlagManager.Instance.flags [2] = false;
        FlagManager.Instance.flags [3] = false;
        FlagManager.Instance.flags [4] = false;
        FlagManager.Instance.flags [5] = false;
        FlagManager.Instance.flags [6] = false;
        FlagManager.Instance.flags [7] = false;
        FlagManager.Instance.flags [8] = false;
        FlagManager.Instance.flags [9] = false;
        FlagManager.Instance.flags [10] = false;
        FlagManager.Instance.flags [11] = false;
        FlagManager.Instance.flags [12] = false;
        FlagManager.Instance.flags [13] = false;
        FlagManager.Instance.flags [14] = false;
        FlagManager.Instance.flags [15] = false;
        FlagManager.Instance.flags [16] = false;
        FlagManager.Instance.flags [17] = false;
        FlagManager.Instance.flags [18] = false;
        FlagManager.Instance.flags [19] = false;
        FlagManager.Instance.flags [20] = false;
        FlagManager.Instance.flags [21] = false;
        FlagManager.Instance.flags [22] = false;
        FlagManager.Instance.flags [23] = false;
        FlagManager.Instance.flags [24] = false;
        FlagManager.Instance.flags [25] = false;
        FlagManager.Instance.flags [26] = false;
        FlagManager.Instance.flags [27] = false;
        FlagManager.Instance.flags [28] = false;
        FlagManager.Instance.flags [29] = false;
        FlagManager.Instance.flags [30] = false;
        FlagManager.Instance.flags [31] = false;
        FlagManager.Instance.flags [32] = false;
        FlagManager.Instance.flags [33] = false;
        FlagManager.Instance.flags [34] = false;
        FlagManager.Instance.flags [35] = false;
        FlagManager.Instance.flags [36] = false;
        FlagManager.Instance.flags [37] = false;
        FlagManager.Instance.flags [38] = false;
        FlagManager.Instance.flags [39] = false;
        FlagManager.Instance.flags [40] = false;
        FlagManager.Instance.flags [41] = false;
        FlagManager.Instance.flags [42] = false;
        FlagManager.Instance.flags [43] = false;
        FlagManager.Instance.flags [44] = false;
        FlagManager.Instance.flags [45] = false;
        FlagManager.Instance.flags [46] = false;
        FlagManager.Instance.flags [47] = false;
        FlagManager.Instance.flags [48] = false;
        FlagManager.Instance.flags [49] = false;
        FlagManager.Instance.flags [50] = false;
        FlagManager.Instance.flags [51] = false;
        FlagManager.Instance.flags [52] = false;
        FlagManager.Instance.flags [53] = false;
        FlagManager.Instance.flags [54] = false;
        FlagManager.Instance.flags [55] = false;
        FlagManager.Instance.flags [56] = false;
        FlagManager.Instance.flags [57] = false;
        FlagManager.Instance.flags [58] = false;
        FlagManager.Instance.flags [59] = false;
        FlagManager.Instance.flags [60] = false;
        FlagManager.Instance.flags [61] = false;
        FlagManager.Instance.flags [62] = false;
        FlagManager.Instance.flags [63] = false;
        FlagManager.Instance.flags [64] = false;
        FlagManager.Instance.flags [65] = false;
        FlagManager.Instance.flags [66] = false;
        FlagManager.Instance.flags [67] = false;
        FlagManager.Instance.flags [68] = false;
        FlagManager.Instance.flags [69] = false;
        FlagManager.Instance.flags [70] = false;
        FlagManager.Instance.flags [71] = false;
        FlagManager.Instance.flags [72] = false;
        FlagManager.Instance.flags [73] = false;
        FlagManager.Instance.flags [74] = false;
        FlagManager.Instance.flags [75] = false;
        FlagManager.Instance.flags [76] = false;
        FlagManager.Instance.flags [77] = false;
        FlagManager.Instance.flags [78] = false;
        FlagManager.Instance.flags [79] = false;
        FlagManager.Instance.flags [80] = false;
        FlagManager.Instance.flags [81] = false;
        FlagManager.Instance.flags [82] = false;
        FlagManager.Instance.flags [83] = false;
        FlagManager.Instance.flags [84] = false;
        FlagManager.Instance.flags [85] = false;
        FlagManager.Instance.flags [86] = false;
        FlagManager.Instance.flags [87] = false;
        FlagManager.Instance.flags [88] = false;
        FlagManager.Instance.flags [89] = false;
        FlagManager.Instance.flags [90] = false;
        FlagManager.Instance.flags [91] = false;
        FlagManager.Instance.flags [92] = false;
        FlagManager.Instance.flags [93] = false;
        FlagManager.Instance.flags [94] = false;
        FlagManager.Instance.flags [95] = false;
        FlagManager.Instance.flags [96] = false;
        FlagManager.Instance.flags [97] = false;
        FlagManager.Instance.flags [98] = false;
        FlagManager.Instance.flags [99] = false;
        FlagManager.Instance.flags [100] = false;
        FlagManager.Instance.flags [101] = false;
        FlagManager.Instance.flags [102] = false;
        FlagManager.Instance.flags [103] = false;
        FlagManager.Instance.flags [104] = false;
        FlagManager.Instance.flags [105] = false;
        FlagManager.Instance.flags [106] = false;
        FlagManager.Instance.flags [107] = false;
        FlagManager.Instance.flags [108] = false;
        FlagManager.Instance.flags [109] = false;
        FlagManager.Instance.flags [110] = false;
        FlagManager.Instance.flags [111] = false;
        FlagManager.Instance.flags [112] = false;
        FlagManager.Instance.flags [113] = false;
        FlagManager.Instance.flags [114] = false;
        FlagManager.Instance.flags [115] = false;
        FlagManager.Instance.flags [116] = false;
        FlagManager.Instance.flags [117] = false;
        FlagManager.Instance.flags [118] = false;
        FlagManager.Instance.flags [119] = false;
        FlagManager.Instance.flags [120] = false;
        FlagManager.Instance.flags [121] = false;
        FlagManager.Instance.flags [122] = false;
        FlagManager.Instance.flags [123] = false;
        FlagManager.Instance.flags [124] = false;
        FlagManager.Instance.flags [125] = false;
        FlagManager.Instance.flags [126] = false;
        FlagManager.Instance.flags [127] = false;
    }
Ejemplo n.º 4
0
    // Update is called once per frame
    void Update()
    {
        safeNum569 = GetComponent<SafeNum569>();

        safeNum569.count = 0;
        safeNum569.overcount = 0;

        text_Bed = GetComponent<Text_Bed>();

        //text_Bed.bedd = 0;

        FlagManager.Instance.flags [0] = false;
        FlagManager.Instance.flags [1] = false;
        FlagManager.Instance.flags [2] = false;
        FlagManager.Instance.flags [3] = false;
        FlagManager.Instance.flags [4] = false;
        FlagManager.Instance.flags [5] = false;
        FlagManager.Instance.flags [6] = false;
        FlagManager.Instance.flags [7] = false;
        FlagManager.Instance.flags [8] = false;
        FlagManager.Instance.flags [9] = false;
        FlagManager.Instance.flags [10] = false;
        FlagManager.Instance.flags [11] = false;
        FlagManager.Instance.flags [12] = false;
        FlagManager.Instance.flags [13] = false;
        FlagManager.Instance.flags [14] = false;
        FlagManager.Instance.flags [15] = false;
        FlagManager.Instance.flags [16] = false;
        FlagManager.Instance.flags [17] = false;
        FlagManager.Instance.flags [18] = false;
        FlagManager.Instance.flags [19] = false;
        FlagManager.Instance.flags [20] = false;
        FlagManager.Instance.flags [21] = false;
        FlagManager.Instance.flags [22] = false;
        FlagManager.Instance.flags [23] = false;
        FlagManager.Instance.flags [24] = false;
        FlagManager.Instance.flags [25] = false;
        FlagManager.Instance.flags [26] = false;
        FlagManager.Instance.flags [27] = false;
        FlagManager.Instance.flags [28] = false;
        FlagManager.Instance.flags [29] = false;
        FlagManager.Instance.flags [30] = false;
        FlagManager.Instance.flags [31] = false;
        FlagManager.Instance.flags [32] = false;
        FlagManager.Instance.flags [33] = false;
        FlagManager.Instance.flags [34] = false;
        FlagManager.Instance.flags [35] = false;
        FlagManager.Instance.flags [36] = false;
        FlagManager.Instance.flags [37] = false;
        FlagManager.Instance.flags [38] = false;
        FlagManager.Instance.flags [39] = false;
        FlagManager.Instance.flags [40] = false;
        FlagManager.Instance.flags [41] = false;
        FlagManager.Instance.flags [42] = false;
        FlagManager.Instance.flags [43] = false;
        FlagManager.Instance.flags [44] = false;
        FlagManager.Instance.flags [45] = false;
        FlagManager.Instance.flags [46] = false;
        FlagManager.Instance.flags [47] = false;
        FlagManager.Instance.flags [48] = false;
        FlagManager.Instance.flags [49] = false;
        FlagManager.Instance.flags [50] = false;
        FlagManager.Instance.flags [51] = false;
        FlagManager.Instance.flags [52] = false;
        FlagManager.Instance.flags [53] = false;
        FlagManager.Instance.flags [54] = false;
        FlagManager.Instance.flags [55] = false;
        FlagManager.Instance.flags [56] = false;
        FlagManager.Instance.flags [57] = false;
        FlagManager.Instance.flags [58] = false;
        FlagManager.Instance.flags [59] = false;
        FlagManager.Instance.flags [60] = false;
        FlagManager.Instance.flags [61] = false;
        FlagManager.Instance.flags [62] = false;
        FlagManager.Instance.flags [63] = false;
        FlagManager.Instance.flags [64] = false;
        FlagManager.Instance.flags [65] = false;
        FlagManager.Instance.flags [66] = false;
        FlagManager.Instance.flags [67] = false;
        FlagManager.Instance.flags [68] = false;
        FlagManager.Instance.flags [69] = false;
        FlagManager.Instance.flags [70] = false;
        FlagManager.Instance.flags [71] = false;
        FlagManager.Instance.flags [72] = false;
        FlagManager.Instance.flags [73] = false;
        FlagManager.Instance.flags [74] = false;
        FlagManager.Instance.flags [75] = false;
        FlagManager.Instance.flags [76] = false;
        FlagManager.Instance.flags [77] = false;
        FlagManager.Instance.flags [78] = false;
        FlagManager.Instance.flags [79] = false;
        FlagManager.Instance.flags [80] = false;
        FlagManager.Instance.flags [81] = false;
        FlagManager.Instance.flags [82] = false;
        FlagManager.Instance.flags [83] = false;
        FlagManager.Instance.flags [84] = false;
        FlagManager.Instance.flags [85] = false;
        FlagManager.Instance.flags [86] = false;
        FlagManager.Instance.flags [87] = false;
        FlagManager.Instance.flags [88] = false;
        FlagManager.Instance.flags [89] = false;
        FlagManager.Instance.flags [90] = false;
        FlagManager.Instance.flags [91] = false;
        FlagManager.Instance.flags [92] = false;
        FlagManager.Instance.flags [93] = false;
        FlagManager.Instance.flags [94] = false;
        FlagManager.Instance.flags [95] = false;
        FlagManager.Instance.flags [96] = false;
        FlagManager.Instance.flags [97] = false;
        FlagManager.Instance.flags [98] = false;
        FlagManager.Instance.flags [99] = false;
        FlagManager.Instance.flags [100] = false;
        FlagManager.Instance.flags [101] = false;
        FlagManager.Instance.flags [102] = false;
        FlagManager.Instance.flags [103] = false;
        FlagManager.Instance.flags [104] = false;
        FlagManager.Instance.flags [105] = false;
        FlagManager.Instance.flags [106] = false;
        FlagManager.Instance.flags [107] = false;
        FlagManager.Instance.flags [108] = false;
        FlagManager.Instance.flags [109] = false;
        FlagManager.Instance.flags [110] = false;
        FlagManager.Instance.flags [111] = false;
        FlagManager.Instance.flags [112] = false;
        FlagManager.Instance.flags [113] = false;
        FlagManager.Instance.flags [114] = false;
        FlagManager.Instance.flags [115] = false;
        FlagManager.Instance.flags [116] = false;
        FlagManager.Instance.flags [117] = false;
        FlagManager.Instance.flags [118] = false;
        FlagManager.Instance.flags [119] = false;
        FlagManager.Instance.flags [120] = false;
        FlagManager.Instance.flags [121] = false;
        FlagManager.Instance.flags [122] = false;
        FlagManager.Instance.flags [123] = false;
        FlagManager.Instance.flags [124] = false;
        FlagManager.Instance.flags [125] = false;
        FlagManager.Instance.flags [126] = false;
        FlagManager.Instance.flags [127] = false;
    }