private IEnumerator PlayMovie(EndingManager manager) { Debug.Log("エンディングム\u30fcビ\u30fc"); isMovieEnd = false; string MovieFilePath = (!manager.IsGoTrueEnd()) ? MovieFileInfos.EndingNormal.GetFilePath() : MovieFileInfos.EndingTrue.GetFilePath(); movie.SetLooping(0).SetMode(0).SetOnWarningID(delegate { this.isMovieEnd = true; }) .SetOnPlay(delegate { SoundUtils.StopFadeBGM(0.2f, null); }) .SetOnFinished(delegate { this.isMovieEnd = true; }) .Play(MovieFilePath); while (!isMovieEnd) { if (Input.GetKeyDown(KeyCode.Joystick1Button7)) { isMovieEnd = true; movie.Stop(); } yield return(null); } yield return(null); }
private IEnumerator Start() { movie = ((Component)base.transform.FindChild("Camera")).GetComponent <PSVitaMovie>(); SingletonMonoBehaviour <FadeCamera> .Instance.FadeIn(0.1f, null); EndingManager manager = new EndingManager(); yield return(StartCoroutine(PlayMovie(manager))); SingletonMonoBehaviour <Live2DModel> .Instance.isDontRelease = true; key = new KeyControl(); EndingTime = 166f; StaffRoll.Speed = (float)StaffRoll.RollSize / EndingTime; ShipModels = manager.CreateShipList(15); ShipView.CreateLive2DCache(ShipModels); ChangeTime = EndingTime / (float)ShipModels.Count; ChangeCount = ChangeTime - 5f; yield return(new WaitForEndOfFrame()); yield return(new WaitForEndOfFrame()); yield return(new WaitForEndOfFrame()); Play(); App.OnlyController = null; isStartEnd = true; }
// Start is called before the first frame update void Start() { currentTime = 0; transformationIndex = 0; endingManager = GetComponent <EndingManager>(); petStatus = petFormController.GetComponent <PetStatus>(); }
// Use this for initialization void Start() { endgame = gameObject.GetComponent <EndingManager>(); Debug.Log("set endgame"); StartCoroutine(Beginning()); //endgame.StartEndScene(); }
void Start() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } textLimit = 125; enterLimitCount = 3; //줄바꿈이 3번 일어나면 대화출력 종료 -> 대화창엔 3줄까지 출력될 것임 tempLimitInOneLine = 30; // 띄어쓰기 + 글자가 30자 이상일 경우, 강제로 줄바꿈 isTextFull = false; isSentenceDone = false; atOnce = false; isConversationing = false; canSkipConversation = false; playerWantToSkip = false; isFading = false; isTypingText = false; index = 0; setOfDesc_Index = 0; numNpcNameLists = 0; curNumOfNpcNameLists = 0; sentences = new string[] { "" }; ispaused = false; dataList = GameObject.Find("DataManager").GetComponent <CSVParser>().GetEndingDataList(); interactionLists = GameObject.Find("DataManager").GetComponent <CSVParser>().GetEndingInteractionLists(); startObjectLists = GameObject.Find("DataManager").GetComponent <CSVParser>().GetEndingStartObjectLists(); imagePathLists = new List <string>(); //캐릭터 이미지 추가되면 적용(테스트) 해야함 tempNpcNameLists = new List <string>(); sentenceLists = new List <string>(); setActiveTrueLists = new List <int>(); npcParser = new NpcParser(); SetAlphaToZero_ConversationUI(); //대화창 UI 투명화 isFirstConversation = false; FadeInOutPanel.SetActive(false); FadeInOutPanelForClue.SetActive(false); /*혹시 몰라서 설정 한번 더 (다이얼로그 속도) 적용...*/ SettingManager.instance.SetCurSetting(); // (추후 이렇게 진행할 예정) // GameManager 에서 선택된 용의자를 용의자 변수에 저장하고, 해당 용의자에 따라서 endingState를 변경한다. // endingState 값에 따라서 엔딩을 시작한다. // EndingStart 함수를 호출한다. EndingStart(); // endingState 값에 따른 엔딩 시작 }
public override void OnInspectorGUI() { base.OnInspectorGUI(); EndingManager script = target as EndingManager; if (GUILayout.Button("Reset Skybox Color")) { script.skybox.SetColor("_Tint", script.initialColor / 255); } }
private void OnDestroy() { this.ModeProc = null; this.SaveSelect = null; this.TypeSelect = null; this.ConfirmSelect = null; this.SaveSelectBtnMng = null; this.ConfirmSelectBtnMng = null; this.TypeSelectBtnMng = null; this.key = null; this.ShipTexture = null; this.ShipNum = null; this.manager = null; }
protected override void Start() { SingletonMonoBehaviour <SoundManager> .Instance.StopBGM(); manager = new EndingManager(); SaveSelect.alpha = 0f; ConfirmSelect.alpha = 0f; ModeProc = GetComponent <ModeProcessor>(); ModeProc.addMode(Mode.AdmiralRankJudge.ToString(), AdmiralRankJudgeRun, AdmiralRankJudgeEnter, AdmiralRankJudgeExit); ModeProc.addMode(Mode.DoSaveSelect.ToString(), DoSaveSelectRun, DoSaveSelectEnter, DoSaveSelectExit); ModeProc.addMode(Mode.InheritTypeSelect.ToString(), InheritTypeSelectRun, InheritTypeSelectEnter, InheritTypeSelectExit); ModeProc.addMode(Mode.Confirm.ToString(), ConfirmRun, ConfirmEnter, ConfirmExit); ShipNum.textInt = manager.GetTakeoverShipCountMax(); }
private void OnDestroy() { ModeProc = null; SaveSelect = null; TypeSelect = null; ConfirmSelect = null; SaveSelectBtnMng = null; ConfirmSelectBtnMng = null; TypeSelectBtnMng = null; key = null; ShipTexture = null; ShipNum = null; manager = null; }
protected override void Start() { SingletonMonoBehaviour <SoundManager> .Instance.StopBGM(); this.manager = new EndingManager(); this.SaveSelect.alpha = 0f; this.ConfirmSelect.alpha = 0f; this.ModeProc = base.GetComponent <ModeProcessor>(); this.ModeProc.addMode(TaskInheritSaveSelect.Mode.AdmiralRankJudge.ToString(), new ModeProc.Mode.ModeRun(this.AdmiralRankJudgeRun), new ModeProc.Mode.ModeChange(this.AdmiralRankJudgeEnter), new ModeProc.Mode.ModeChange(this.AdmiralRankJudgeExit)); this.ModeProc.addMode(TaskInheritSaveSelect.Mode.DoSaveSelect.ToString(), new ModeProc.Mode.ModeRun(this.DoSaveSelectRun), new ModeProc.Mode.ModeChange(this.DoSaveSelectEnter), new ModeProc.Mode.ModeChange(this.DoSaveSelectExit)); this.ModeProc.addMode(TaskInheritSaveSelect.Mode.InheritTypeSelect.ToString(), new ModeProc.Mode.ModeRun(this.InheritTypeSelectRun), new ModeProc.Mode.ModeChange(this.InheritTypeSelectEnter), new ModeProc.Mode.ModeChange(this.InheritTypeSelectExit)); this.ModeProc.addMode(TaskInheritSaveSelect.Mode.Confirm.ToString(), new ModeProc.Mode.ModeRun(this.ConfirmRun), new ModeProc.Mode.ModeChange(this.ConfirmEnter), new ModeProc.Mode.ModeChange(this.ConfirmExit)); this.ShipNum.textInt = this.manager.GetTakeoverShipCountMax(); }
// Use this for initialization void Start() { EM = GameObject.FindGameObjectWithTag("EndingManager").GetComponent <EndingManager>(); bomber = GameObject.FindGameObjectWithTag("BombSender").GetComponent <DeployBomb>(); TroopSender = GameObject.FindGameObjectWithTag("TroopSender").GetComponent <SendTroops>(); //myTeam = Team.Spooky; BasePool = GameObject.FindGameObjectWithTag("BasePool").transform; selectedBases = new List <Base>(); myBases = new List <Base>(); otherBases = new List <Base>(); Base b; //tell ai whose is its own and whose are enemies foreach (Transform place in BasePool) { b = place.GetComponent <Base>(); if (b.myTeam().Equals(myTeam)) { myBases.Add(b); numberMyBases++; } else { otherBases.Add(b); numberOtherBases++; } } //Let the carnage begin switch (algToUse) { case AlgorithmType.Random: StartCoroutine(RandomMoveAlgorithm()); break; case AlgorithmType.Greedy: StartCoroutine(GreedyMoveAlgorithm()); break; case AlgorithmType.GreedyTurtle: StartCoroutine(GreedyTurtleMoveAlgorithm()); break; case AlgorithmType.SensibleRandom: StartCoroutine(SensibleRandomAlgorithm()); break; } }
public void Initialize(EndingManager manager) { uint lostShipCount = manager.GetLostShipCount(); int turn = manager.Turn; int decorationValue = 0; DifficultKind difficulty = manager.UserInfo.Difficulty; manager.CalculateTotalRank(out OverallRank rank, out decorationValue); TurnLabel.textInt = turn; lostShipLabel.text = lostShipCount.ToString(); SetDiffSprite(difficulty); SetDiffMedal(difficulty); SetRankSprite(rank); SetPlus(decorationValue, rank); _turn = turn; _lostShip = lostShipCount; ((Component)PetalParticle).SetActive(isActive: false); ((Component)MedalParticle).SetActive(isActive: false); }
public void Initialize(EndingManager manager) { uint lostShipCount = manager.GetLostShipCount(); int turn = manager.Turn; int plus = 0; DifficultKind difficulty = manager.UserInfo.Difficulty; OverallRank overallRank; manager.CalculateTotalRank(out overallRank, out plus); this.TurnLabel.textInt = turn; this.lostShipLabel.text = lostShipCount.ToString(); this.SetDiffSprite(difficulty); this.SetDiffMedal(difficulty); this.SetRankSprite(overallRank); this.SetPlus(plus, overallRank); this._turn = turn; this._lostShip = lostShipCount; this.PetalParticle.SetActive(false); this.MedalParticle.SetActive(false); }
void Awake() { instance = this; DontDestroyOnLoad(gameObject); }
private void Awake() { Instance = this; }
// Use this for initialization void Start() { if (instance != null) { Destroy(this.gameObject); return; } instance = this; gmObj = GameObject.Find("GameManager"); gm = gmObj.GetComponent<GameManager>(); sm = gmObj.GetComponent<SceneManager>(); sdm = GameObject.Find("SoundManager").GetComponent<SoundManager>(); }
public void Awake() { em = this; }
private void Awake() { answersGiven = new List <string>(); endingManager = EndingManager.Instance; }