示例#1
0
    void Start()
    {
        m_mainState = MainState.START;        //スタートから開始
        // セリフUI設定
        CharacterWordsUI sayUI = GameObject.Find("SekkenSayUI").GetComponent <CharacterWordsUI>();

        m_sayUI = GameObject.Find("SekkenSayUI").GetComponent <PauseObject>();
        if (sayUI)
        {
            switch (SceneData.characterSelect)
            {
            case SceneData.CharacterSelect.SekkenKun:

                sayUI.ChangeSekken(CharacterWordsUI.ESekkenNo.SekkenKun);
                break;

            case SceneData.CharacterSelect.SekkenHero:

                sayUI.ChangeSekken(CharacterWordsUI.ESekkenNo.SekkenHero);
                break;

            case SceneData.CharacterSelect.SekkenChan:

                sayUI.ChangeSekken(CharacterWordsUI.ESekkenNo.SekkenChan);
                break;
            }
        }
        player = GameObject.Find("PlayerCharacter");
        m_dirtySystemObject         = GameObject.Find("DirtySystem");
        dirtySystem                 = m_dirtySystemObject.GetComponent <DirtySystem>();
        recoverySoapCreatersManager = GameObject.Find("RecoverySoapCreatersManager").GetComponent <RecoverySoapCreatersManager>();
        pushKey  = GameObject.Find("PushKey");
        poseMenu = GameObject.Find("PauseCur").GetComponent <PoseMenu>();

        m_playRecordAsPauseObject.pausing = true;
        m_endUI        = GameObject.Find("EndUI").GetComponent <PauseObject>();
        m_dirtys       = GameObject.Find("StartVisualizeSystems").GetComponent <PauseObject>();
        m_pauseSystems = GameObject.Find("StartStopSystems").GetComponent <PauseObject>();
        m_dirtySystem  = GameObject.Find("DirtySystem").GetComponent <PauseObject>();
        //ActionRecordManager.sActionRecord.Reset();

        //モード確認
        SelectingCharactor no = GameObject.Find("CharNo").GetComponent <SelectingCharactor>();

        //	if (no != null)
        {
            if (SceneData.modeSelect == PlayModeState.NORMAL)
            {
                m_modeState             = ModeState.NORMAL_PLAY;
                m_pauseSystems.pausing  = true;
                m_instructPuase.pausing = true;
            }
            else
            {
                m_modeState              = ModeState.FREE_PLAY;
                m_sizeCounterUI.pausing  = true;
                m_dirtyCounterUI.pausing = true;
                m_washChainUI.pausing    = true;
                m_pauseSystems.pausing   = true;
                //m_dirtys.gameObject.SetActive(false);
            }
        }
        no.loaded = true;

        m_pauseSystems.pausing = true;
        ExecuteStateEnterProcesss(m_mainState);
        BGMManager.Instance.PlayBGM("GameMain_BGM", 0);
    }
 // Use this for initialization
 void Start()
 {
     m_myManager        = GameObject.Find("RecoverySoapCreatersManager").GetComponent <RecoverySoapCreatersManager>();
     IsHaveRevoverySoap = false;
     sayUI = GameObject.Find("SekkenSayUI").GetComponent <CharacterWordsUI>();
 }