Esempio n. 1
0
 //public Image flower1, flower2, flower3, flower4, flower5;
 //Texture2D t = AssetDatabase.LoadAssetAtPath<Texture2D>("Assets/Original/Material&Image");
 // 初期化
 void Start()
 {
     HighCount    = GameObject.Find("hinanarea (1)");
     HighHinan    = HighCount.GetComponent <HighHinanAreaCount>();
     AreaCount    = GameObject.Find("hinanarea (2)");
     HinanCount   = AreaCount.GetComponent <HinanAreaCount>();
     Gamemana     = GameObject.Find("GameManager");
     Gamemanager  = Gamemana.GetComponent <GameManager>();
     H_Score_Word = "×";
     K_Score_Word = "◎";
     S_Score_Word = "×";
     H_Score_Num  = 0;
     K_Score_Num  = 30;
     S_Score_Num  = 0;
     T_Score_Num  = 0;
 }
Esempio n. 2
0
    public int ShakeCount = 0;                          //地震発生のカメラ振動を捕える補数。初期値0


    // Start is called before the first frame update
    void Start()
    {
        // オープニング
        GameOpening();
        SinarioFlag    = 0;
        MapDisplayFlag = 0;
        ShakeCount     = 0;
        Efect.SetActive(false);
        Siya.SetActive(false);
        StartCamera.SetActive(true);
        OtherCamara.SetActive(false);
        //Trajectory.SetActive(false);
        ResultCamera.SetActive(false);
        //NPC.SetActive(false);
        Wave.GetComponent <WaveController>().enabled = false;
        Player.gameObject.GetComponent <UnityChanControlScriptWithRgidBody>().enabled = false;
        //GetComponent<NPCControl>().enabled = false;
        ControllText.SetActive(false);
        audioSource.SetActive(false);
        MapDisplay.SetActive(false);
        HinanArea.SetActive(false);
        Notification.SetActive(false);
        Atari      = GameObject.Find("Atari");
        atari      = Atari.GetComponent <Atari>();
        AreaCount  = GameObject.Find("hinanarea (2)");
        HinanCount = AreaCount.GetComponent <HinanAreaCount>();
        HighCount  = GameObject.Find("hinanarea (1)");
        HighHinan  = HighCount.GetComponent <HighHinanAreaCount>();
        //HighCount = GameObject.Find("hinanarea (1)");
        //HighhinanCount = HighCount.GetComponent<HinanareaCount>();
        //Changer = GameObject.Find("MainCamera");
        Camerachanger = OtherCamara.GetComponent <CameraChanger>();
        if (HinanCount.AreaCount == 0)
        {
            FinishButton.SetActive(false);
        }
    }