示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        ClearFlag = GameObject.Find("ClearFlag");
        clear     = ClearFlag.GetComponent <gameflag>();

        Stage1.SetActive(true);
        Stage2.SetActive(false);
        Stage3.SetActive(false);
        Stage4.SetActive(false);
        Stage5.SetActive(false);
        Stage6.SetActive(false);

        for (int i = 0; i < 6; i++)
        {
            clearflag[i] = false;
        }

        clearflag[0] = true;//1ステージ目はtrueにしておく
    }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     ClearStage = GameObject.Find("ClearFlag");
     clearstage = ClearStage.GetComponent <gameflag>();
 }