void OnGameModeChange(GameMapController.Mode mode) { switch (mode) { case GameMapController.Mode.Play: toggleButton.raycastTarget = false; //play edit mode exit animator.Play(mTakeEditHideId); LoLManager.instance.PlaySound(toggleSoundClosePath, false, false); break; case GameMapController.Mode.Edit: toggleButton.raycastTarget = false; //show active items for (int i = 0; i < mActiveWidgets.Count; i++) { mActiveWidgets[i].gameObject.SetActive(true); mActiveWidgets[i].UpdateCount(); } //play edit mode enter animator.Play(mTakeEditShowId); LoLManager.instance.PlaySound(toggleSoundOpenPath, false, false); break; } }
void OnGameChangeMode(GameMapController.Mode mode) { switch (mode) { case GameMapController.Mode.Edit: HideInterfaceDisplays(); break; } }
void OnGameModeChanged(GameMapController.Mode mode) { var goalGO = HUD.instance.GetMiscHUD("goal"); var restartDescGO = HUD.instance.GetMiscHUD("tutorialRestart"); switch (mode) { case GameMapController.Mode.Edit: if (!mIsEditTutorialFinished) { StartCoroutine(DoEditTutorial()); } else { if (mTutorialBlockControlGO) { mTutorialBlockControlGO.SetActive(true); } } goalGO.SetActive(false); restartDescGO.SetActive(false); break; case GameMapController.Mode.Play: if (mTutorialPaletteItemDragGO) { mTutorialPaletteItemDragGO.SetActive(false); } if (mTutorialBlockControlGO) { mTutorialBlockControlGO.SetActive(false); } if (blockAreaHintGO) { blockAreaHintGO.SetActive(false); } goalGO.SetActive(true); restartDescGO.SetActive(true); var playReadyDescGO = HUD.instance.GetMiscHUD("tutorialPlayReady"); playReadyDescGO.SetActive(false); if (mHasDeployedBlock) { mIsEditTutorialFinished = true; } break; } }
void OnGameChangeMode(GameMapController.Mode mode) { switch (mode) { case GameMapController.Mode.Play: SetTriggerActive(true); //enable trigger if it hasn't yet (after placements) break; case GameMapController.Mode.Edit: break; } }
void OnGameModeChange(GameMapController.Mode mode) { switch (mode) { case GameMapController.Mode.Edit: launchButton.interactable = false; break; case GameMapController.Mode.Play: launchButton.interactable = mValidCount == checklist.Length; break; } }
void OnGameModeChanged(GameMapController.Mode mode) { switch (mode) { case GameMapController.Mode.Play: ShowGrid(false); break; case GameMapController.Mode.Edit: ShowGrid(true); break; } }
void OnGameModeChanged(GameMapController.Mode mode) { switch (mode) { case GameMapController.Mode.Edit: if (!mHasStarted) { mHasStarted = true; StartCoroutine(DoTutorial()); } break; } }
void OnGameChangeMode(GameMapController.Mode mode) { switch (mode) { case GameMapController.Mode.Edit: //revert to ghost this.mode = Mode.Ghost; break; case GameMapController.Mode.Play: if (mIsDeployed) //revert back to solid if we were deployed last time { this.mode = Mode.Solid; } break; } }
void OnGameChangeMode(GameMapController.Mode mode) { switch (mode) { case GameMapController.Mode.Play: ClearDragging(); //deploy active ghosts mGhostActives.Sort(); for (int i = 0; i < mGhostActives.Count; i++) { var ghostBlock = mGhostActives[i]; if (ghostBlock && !ghostBlock.isReleased) { ghostBlock.dimensionChangedCallback -= OnGhostBlockDimensionChanged; ghostBlock.releaseCallback -= OnGhostBlockRelease; if (ghostBlock.EditIsPlacementValid()) { ghostBlock.mode = Block.Mode.Solid; } else { mGhostMatterCount -= ghostBlock.matterCount; ghostBlock.Release(); } } } mGhostActives.Clear(); GameMapController.instance.PaletteChange(blockName, -mGhostMatterCount); mGhostMatterCount = 0; // UpdateCount(); break; } UpdateInteractible(); }
void OnGameModeChange(GameMapController.Mode mode) { switch (mode) { case GameMapController.Mode.Edit: StopAllCoroutines(); //disconnect current blocks for (int i = 0; i < mAttachedBlocks.Count; i++) { BlockConnectController.instance.SetConnect(mAttachedBlocks[i].blockName, false); } mAttachedBlocks.Clear(); break; case GameMapController.Mode.Play: StartCoroutine(DoBlockUpdate()); break; } }
void OnGameModeChanged(GameMapController.Mode mode) { UpdateCollider(); }