void Start() { m_rigidbody = GetComponent <Rigidbody>(); m_animator = GetComponent <Animator>(); m_bubbleDriftShooter = GetComponentInChildren <BubbleDriftShooter>(); //m_driftParticleSystemRight = m_driftParticleEmitterRight.GetComponent<ParticleSystem>(); //m_driftParticleSystemLeft = m_driftParticleEmitterLeft.GetComponent<ParticleSystem>(); m_driftParticleSystemRight = transform.FindChild("DriftParticleEmitterRight").GetComponent <ParticleSystem>(); m_driftParticleSystemLeft = transform.FindChild("DriftParticleEmitterLeft").GetComponent <ParticleSystem>(); m_endStateSystem = GameObject.Find("EndStateSystem").GetComponent <EndStateSystem>(); m_meshObject = transform.FindChild("Mesh").gameObject; m_moveBubbleSystem = transform.FindChild("MoveBubble").GetComponent <ParticleSystem>(); m_pauseObjectTransform = transform.parent; m_sayUI = GameObject.Find("SekkenSayUI").GetComponent <CharacterWordsUI>(); m_playerCamera = GameObject.Find("MainCamera").GetComponent <PlayerCamera>(); m_characterIcon = GameObject.Find("SizeIconUI").GetComponent <CharacterIconUI>(); m_driftParticleSystemRight.enableEmission = false; m_driftParticleSystemLeft.enableEmission = false; m_driftParticleSystemRight.Clear(); m_driftParticleSystemLeft.Clear(); m_moveBubbleSystem.enableEmission = false; m_moveBubbleSystem.Clear(); m_endStateSystem.Sekkenkun = gameObject; m_maxRotation = m_maxRotationNormal; m_rotationPower = m_rotationPowerNormal; m_breakeAfterTime = m_breakeAfterEndTime; m_defaultScale = transform.localScale; m_driveState = DriveState.Start; }
// Use this for initialization void Start() { GameObject obj = GameObject.Find("SekkenSayUI"); if (obj) { sayUI = obj.GetComponent <CharacterWordsUI>(); } playerLayer = LayerMask.NameToLayer("Player"); #if DEBUG if (m_lockArea < 2 || 4 < m_lockArea) { Debug.Log("Out-of-range values" + this); } #endif }
// Use this for initialization void Start() { numWeather = 0; NowWeather = Weather.SUN; TSUTSUMISAN = GameObject.Find("SekkenSayUI").GetComponent <CharacterWordsUI>(); save = GameObject.Find("SaveDataManager").GetComponent <SaveDataManager>(); nowWeathers = PlayerCharacterController.WeatherState.Sunny; LoadSave(); m_skybox = GameObject.Find("MainCamera").GetComponent <Skybox>(); // ChangeWeather(); ActiveWeather(); minute = 0; m_player = GameObject.Find("PlayerCharacter").GetComponent <PlayerCharacterController>(); }
/** * <summary>Use this for initialization.</summary> * * <remarks>Kazuyuki,.</remarks> */ void Start() { wordsUI = GameObject.Find("SekkenSayUI").GetComponent <CharacterWordsUI>(); isRunning = true; // プレイヤーの取得 if (player == null) { player = GameObject.Find("PlayerCharacter").GetComponent <PlayerCharacterController>(); } dirtyCounterObject = GameObject.Find("DirtyCounter"); ///// ふつーの汚れ for (int i = 0; i < m_commonDirtyCreatersOfArea1.Length; i++) { if (m_commonDirtyCreatersOfArea1[i] == null) { Debug.Log(m_commonDirtyCreatersOfArea1[i] + "= null"); } m_commonDirtyCreatersOfArea1[i].ParntDirtySystem = this; m_commonDirtyCreatersOfArea1[i].AffiliationArea = 0; m_commonDirtyCreatersOfArea1[i].Player = player; m_commonDirtyCreatersOfArea1[i].Init(player); } for (int i = 0; i < m_commonDirtyCreatersOfArea2.Length; i++) { if (m_commonDirtyCreatersOfArea2[i] == null) { Debug.Log(m_commonDirtyCreatersOfArea1[i] + "= null"); } m_commonDirtyCreatersOfArea2[i].ParntDirtySystem = this; m_commonDirtyCreatersOfArea2[i].AffiliationArea = 1; m_commonDirtyCreatersOfArea2[i].Player = player; m_commonDirtyCreatersOfArea2[i].Init(player); } for (int i = 0; i < m_commonDirtyCreatersOfArea3.Length; i++) { if (m_commonDirtyCreatersOfArea3[i] == null) { Debug.Log(m_commonDirtyCreatersOfArea1[i] + "= null"); } m_commonDirtyCreatersOfArea3[i].ParntDirtySystem = this; m_commonDirtyCreatersOfArea3[i].AffiliationArea = 2; m_commonDirtyCreatersOfArea3[i].Player = player; m_commonDirtyCreatersOfArea3[i].Init(player); } for (int i = 0; i < m_commonDirtyCreatersOfArea4.Length; i++) { if (m_commonDirtyCreatersOfArea4[i] == null) { Debug.Log(m_commonDirtyCreatersOfArea1[i] + "= null"); } m_commonDirtyCreatersOfArea4[i].ParntDirtySystem = this; m_commonDirtyCreatersOfArea4[i].AffiliationArea = 3; m_commonDirtyCreatersOfArea4[i].Player = player; m_commonDirtyCreatersOfArea4[i].Init(player); } ///// 着地で落として欲しい汚れ for (int i = 0; i < m_landingDirtyCreatersOfArea1.Length; i++) { if (m_landingDirtyCreatersOfArea1[i] == null) { Debug.Log(m_commonDirtyCreatersOfArea1[i] + "= null"); } m_landingDirtyCreatersOfArea1[i].ParntDirtySystem = this; m_landingDirtyCreatersOfArea1[i].AffiliationArea = 0; m_landingDirtyCreatersOfArea1[i].Player = player; m_landingDirtyCreatersOfArea1[i].Init(player); } for (int i = 0; i < m_landingDirtyCreatersOfArea2.Length; i++) { if (m_landingDirtyCreatersOfArea2[i] == null) { Debug.Log(m_commonDirtyCreatersOfArea1[i] + "= null"); } m_landingDirtyCreatersOfArea2[i].ParntDirtySystem = this; m_landingDirtyCreatersOfArea2[i].AffiliationArea = 1; m_landingDirtyCreatersOfArea2[i].Player = player; m_landingDirtyCreatersOfArea2[i].Init(player); } for (int i = 0; i < m_landingDirtyCreatersOfArea3.Length; i++) { if (m_landingDirtyCreatersOfArea3[i] == null) { Debug.Log(m_commonDirtyCreatersOfArea1[i] + "= null"); } m_landingDirtyCreatersOfArea3[i].ParntDirtySystem = this; m_landingDirtyCreatersOfArea3[i].AffiliationArea = 2; m_landingDirtyCreatersOfArea3[i].Player = player; m_landingDirtyCreatersOfArea3[i].Init(player); } for (int i = 0; i < m_landingDirtyCreatersOfArea4.Length; i++) { if (m_landingDirtyCreatersOfArea4[i] == null) { Debug.Log(m_landingDirtyCreatersOfArea4[i] + "= null"); } m_landingDirtyCreatersOfArea4[i].ParntDirtySystem = this; m_landingDirtyCreatersOfArea4[i].AffiliationArea = 3; m_landingDirtyCreatersOfArea4[i].Player = player; m_landingDirtyCreatersOfArea4[i].Init(player); } ///// 壁についた汚れ for (int i = 0; i < m_wallDirtyCreatersOfArea1.Length; i++) { if (m_wallDirtyCreatersOfArea1[i] == null) { Debug.Log(m_wallDirtyCreatersOfArea1[i] + "= null"); } m_wallDirtyCreatersOfArea1[i].ParntDirtySystem = this; m_wallDirtyCreatersOfArea1[i].AffiliationArea = 0; m_wallDirtyCreatersOfArea1[i].Player = player; m_wallDirtyCreatersOfArea1[i].Init(player); } for (int i = 0; i < m_wallDirtyCreatersOfArea2.Length; i++) { if (m_wallDirtyCreatersOfArea2[i] == null) { Debug.Log(m_wallDirtyCreatersOfArea2[i] + "= null"); } m_wallDirtyCreatersOfArea2[i].ParntDirtySystem = this; m_wallDirtyCreatersOfArea2[i].AffiliationArea = 1; m_wallDirtyCreatersOfArea2[i].Player = player; m_wallDirtyCreatersOfArea2[i].Init(player); } for (int i = 0; i < m_wallDirtyCreatersOfArea3.Length; i++) { if (m_wallDirtyCreatersOfArea3[i] == null) { Debug.Log(m_wallDirtyCreatersOfArea3[i] + "= null"); } m_wallDirtyCreatersOfArea3[i].ParntDirtySystem = this; m_wallDirtyCreatersOfArea3[i].AffiliationArea = 2; m_wallDirtyCreatersOfArea3[i].Player = player; m_wallDirtyCreatersOfArea3[i].Init(player); } for (int i = 0; i < m_wallDirtyCreatersOfArea4.Length; i++) { if (m_wallDirtyCreatersOfArea4[i] == null) { Debug.Log(m_wallDirtyCreatersOfArea4[i] + "= null"); } m_wallDirtyCreatersOfArea4[i].ParntDirtySystem = this; m_wallDirtyCreatersOfArea4[i].AffiliationArea = 3; m_wallDirtyCreatersOfArea4[i].Player = player; m_wallDirtyCreatersOfArea4[i].Init(player); } ///// 車についた汚れ for (int i = 0; i < m_carDirtyCreatersOfArea1.Length; i++) { if (m_carDirtyCreatersOfArea1[i] == null) { Debug.Log(m_carDirtyCreatersOfArea1[i] + "= null"); } m_carDirtyCreatersOfArea1[i].ParntDirtySystem = this; m_carDirtyCreatersOfArea1[i].AffiliationArea = 0; m_carDirtyCreatersOfArea1[i].IsAdhereCar = true; m_carDirtyCreatersOfArea1[i].Player = player; m_carDirtyCreatersOfArea1[i].Init(player); } for (int i = 0; i < m_carDirtyCreatersOfArea2.Length; i++) { if (m_carDirtyCreatersOfArea2[i] == null) { Debug.Log(m_carDirtyCreatersOfArea2[i] + "= null"); } m_carDirtyCreatersOfArea2[i].ParntDirtySystem = this; m_carDirtyCreatersOfArea2[i].AffiliationArea = 1; m_carDirtyCreatersOfArea2[i].IsAdhereCar = true; m_carDirtyCreatersOfArea2[i].Player = player; m_carDirtyCreatersOfArea2[i].Init(player); } for (int i = 0; i < m_carDirtyCreatersOfArea3.Length; i++) { if (m_carDirtyCreatersOfArea3[i] == null) { Debug.Log(m_carDirtyCreatersOfArea3[i] + "= null"); } m_carDirtyCreatersOfArea3[i].ParntDirtySystem = this; m_carDirtyCreatersOfArea3[i].AffiliationArea = 2; m_carDirtyCreatersOfArea3[i].IsAdhereCar = true; m_carDirtyCreatersOfArea3[i].Player = player; m_carDirtyCreatersOfArea3[i].Init(player); } for (int i = 0; i < m_carDirtyCreatersOfArea4.Length; i++) { if (m_carDirtyCreatersOfArea4[i] == null) { Debug.Log(m_carDirtyCreatersOfArea4[i] + "= null"); } m_carDirtyCreatersOfArea4[i].ParntDirtySystem = this; m_carDirtyCreatersOfArea4[i].AffiliationArea = 3; m_carDirtyCreatersOfArea4[i].IsAdhereCar = true; m_carDirtyCreatersOfArea4[i].Player = player; m_carDirtyCreatersOfArea4[i].Init(player); } //// レアの汚れ { if (RealityPoint1) { RealityPoint1.ParntDirtySystem = this; RealityPoint1.IsReality = true; RealityPoint1.AffiliationArea = 0; RealityPoint1.Player = player; RealityPoint1.Init(player); } if (RealityPoint2) { RealityPoint2.ParntDirtySystem = this; RealityPoint2.IsReality = true; RealityPoint2.AffiliationArea = 1; RealityPoint2.Player = player; RealityPoint2.Init(player); } if (RealityPoint3) { RealityPoint3.ParntDirtySystem = this; RealityPoint3.IsReality = true; RealityPoint3.AffiliationArea = 2; RealityPoint3.Player = player; RealityPoint3.Init(player); } if (RealityPoint4) { RealityPoint4.ParntDirtySystem = this; RealityPoint4.IsReality = true; RealityPoint4.AffiliationArea = 3; RealityPoint4.Player = player; RealityPoint4.Init(player); } } }
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>(); }