private void Start() { StrategyMapManager strategyMapManager = new StrategyMapManager(); SortieManager sortieManager = strategyMapManager.SelectArea(1); _clsSortieMapManager = sortieManager.GoSortie(1, 11); sortieManager.GoSortie(1, 11); _clsSortieBattleManager = _clsSortieMapManager.BattleStart(BattleFormationKinds1.FukuJuu); GameObject gameObject = (GameObject)Object.Instantiate(position: new Vector3(0f, 0f, 0f), original: currentDetonator, rotation: Quaternion.identity); }
private void Start() { StrategyMapManager strategyMapManager = new StrategyMapManager(); SortieManager sortieManager = strategyMapManager.SelectArea(1); BattleTest._clsSortieMapManager = sortieManager.GoSortie(1, 11); SortieMapManager sortieMapManager = sortieManager.GoSortie(1, 11); BattleTest._clsSortieBattleManager = BattleTest._clsSortieMapManager.BattleStart(BattleFormationKinds1.FukuJuu); Vector3 vector = new Vector3(0f, 0f, 0f); GameObject gameObject = (GameObject)Object.Instantiate(this.currentDetonator, vector, Quaternion.get_identity()); }
static void Main(string[] args) { AppInitializeManager.Awake(); App.InitSystems(); // 26 fuso // var bgm = Mst_DataManager.Instance.GetMstBgm(); // var cabinet = Mst_DataManager.Instance.GetMstCabinet(); // var payitem = Mst_DataManager.Instance.GetPayitem(); // var furnitureText = Mst_DataManager.Instance.GetFurnitureText(); Debug_Mod debug_Mod = new Debug_Mod(); List <int> list = new List <int>(); Debug.Log("ADD SHIP"); debug_Mod.Add_Ship(list); list.Add(330); // Akizuki Kai list.Add(24); // Ooi list.Add(175); // Z3 list.Add(117); // Zuihou Kai list.Add(75); // Hiyou list.Add(321); // Ooyodo Kai list.Add(182); // Akashi for (int i = 100; i < 110; i++) { // 100 Tama // 101 Kiso // 102 Chitose // 103 Chiyoda // 104 Chitose Kai // 105 Chiyoda Kai // 106 Chitose A // 107 Chiyoda A // 108 Chitose-Kou // 109 Chiyoda-Kou list.Add(i); } debug_Mod.Add_Ship(list); var userData = Comm_UserDatas.Instance; // var ui = (new LocalManager()).UserInfo; // LocalManager localManager = new LocalManager(); OrganizeManager organizeManager = new OrganizeManager(1); debug_Mod.Add_Deck(2); debug_Mod.Add_Deck(3); debug_Mod.Add_Deck(4); debug_Mod.Add_Deck(5); debug_Mod.Add_Deck(6); ManagerBase.initialize(); organizeManager.ChangeOrganize(1, 2, 2); organizeManager.ChangeOrganize(1, 3, 3); Dictionary <int, int> dictionary = new Dictionary <int, int>(); for (int j = 0; j < 100; j++) { if ((1 <= j && j <= 3) || (10 <= j && j <= 12) || (49 <= j && j <= 59)) { dictionary[j] = 1; } dictionary[54] = 0; dictionary[59] = 10; } debug_Mod.Add_UseItem(dictionary); debug_Mod.Add_Materials(enumMaterialCategory.Fuel, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Bull, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Steel, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Bauxite, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Repair_Kit, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Dev_Kit, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Revamp_Kit, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Build_Kit, 2000); debug_Mod.Add_Coin(80000); List <int> list2 = new List <int>(); list2.Add(1); list2.Add(1); list2.Add(1); list2.Add(1); list2.Add(1); list2.Add(1); for (int k = 0; k < 30; k++) { list2.Add(14); } for (int l = 1; l < 100; l++) { list2.Add(l); } for (int m = 0; m < 30; m++) { list2.Add(25); } for (int n = 0; n < 6; n++) { list2.Add(42); } for (int num = 1; num < 100; num++) { Debug_Mod.ChangeSlotLevel(list2[num], 9); } debug_Mod.Add_SlotItem(list2); DebugUtils.SLog("DEBUG_MOD OK"); StrategyTopTaskManager top = new StrategyTopTaskManager(); // top.Awake2(); StrategyMapManager strategyMapManager = new StrategyMapManager(); SortieManager sortieManager = strategyMapManager.SelectArea(1); SortieMapManager sortieMapManager = sortieManager.GoSortie(1, 11); SortieBattleManager sortieBattleManager = sortieMapManager.BattleStart(BattleFormationKinds1.TanJuu); BattleResultModel battleResultModel = sortieBattleManager.GetBattleResult(); //SortieMapManager _clsSortieMapManager = sortieManager.GoSortie(1, 11); //SortieMapManager _clsSortieMapManager = sortieManager.GoSortie(1, 14); //SortieBattleManager _clsSortieBattleManager = _clsSortieMapManager.BattleStart(BattleFormationKinds1.TanJuu); // var a = KCV.BattleCut.BattleCutPhase.Command; // CommandPhaseModel _clscommandPhaseModel = _clsSortieBattleManager.GetCommandPhaseModel(); // var a = Server_Controllers.BattleLogic.ExecBattleKinds.DayToNight; // _clsSortieBattleManager.StartDayToNightBattle(); //BattleResultModel res = _clsSortieBattleManager.GetBattleResult(); Console.WriteLine("hajimarimasu"); }
protected override bool Init() { isAnimationStarted = false; mDisplaySwipeRegion.SetEventCatchCamera(mCamera); mDisplaySwipeRegion.SetOnSwipeActionJudgeCallBack(OnSwipeAction); Transform transform = mStageSelectRoot; Vector3 localPosition = mCamera.transform.localPosition; float x = localPosition.x; Vector3 localPosition2 = mCamera.transform.localPosition; transform.localPosition = new Vector3(x, localPosition2.y); mAreaId = StrategyTopTaskManager.Instance.TileManager.FocusTile.areaID; mStrategyTopTaskManager = StrategyTaskManager.GetStrategyTop(); mIsFinishedAnimation = false; mMapModels = StrategyTopTaskManager.GetLogicManager().SelectArea(mAreaId).Maps; mSortieManager = StrategyTopTaskManager.GetLogicManager().SelectArea(mAreaId); mKeyController = new KeyControl(); mKeyController.isLoopIndex = true; mKeyController.IsRun = false; TweenAlpha.Begin(GameObject.Find("Information Root"), 0.3f, 0f); TweenAlpha.Begin(GameObject.Find("Map_BG"), 0.3f, 0f); GameObject gameObject = StrategyTopTaskManager.Instance.TileManager.Tiles[mAreaId].getSprite().gameObject; mTransform_AnimationTile = Util.Instantiate(gameObject, GameObject.Find("Map Root").gameObject, addParentPos: true).transform; mAnimation_MapObjects = ((Component)mTransform_StageCovers).GetComponent <Animation>(); StartCoroutine(StartSeaAnimationCoroutine()); IEnumerator routine = StartSeaAnimationCoroutine(); StartCoroutine(routine); mTransform_StageCovers.SetActive(isActive: true); ((Component)mTransform_StageCovers.Find("UIStageCovers")).GetComponent <UIWidget>().alpha = 0.001f; SelectedHexAnimation(delegate { StartCoroutine(InititalizeStageCovers(delegate { ((Component)mTransform_StageCovers).GetComponent <Animation>().Play("SortieAnimation"); ShowMaps(mMapModels); })); }); if (mAreaId == 2 || mAreaId == 4 || mAreaId == 5 || mAreaId == 6 || mAreaId == 7 || mAreaId == 10 || mAreaId == 14) { mTexture_sallyBGsky.mainTexture = (Resources.Load("Textures/Strategy/sea2_Sunny_sky") as Texture); mTexture_sallyBGclouds.mainTexture = (Resources.Load("Textures/Strategy/sea2_Sunny_clouds") as Texture); mTexture_sallyBGcloudRefl.mainTexture = (Resources.Load("Textures/Strategy/sea2_Sunny_clouds") as Texture); mTexture_sallyBGcloudRefl.height = 91; mTexture_sallyBGcloudRefl.alpha = 0.25f; mTexture_bgSea.mainTexture = (Resources.Load("Textures/Strategy/sea2_Sunny_sea") as Texture); mTexture_snow.mainTexture = null; } else if (mAreaId == 3 || mAreaId == 13) { mTexture_sallyBGsky.mainTexture = (Resources.Load("Textures/Strategy/sea3_Sunny_sky") as Texture); mTexture_sallyBGclouds.mainTexture = (Resources.Load("Textures/Strategy/sea3_Sunny_clouds") as Texture); mTexture_sallyBGcloudRefl.mainTexture = (Resources.Load("Textures/Strategy/sea3_Sunny_clouds") as Texture); mTexture_sallyBGcloudRefl.height = 90; mTexture_sallyBGcloudRefl.alpha = 0.75f; mTexture_bgSea.mainTexture = (Resources.Load("Textures/Strategy/sea3_Sunny_sea") as Texture); mTexture_snow.mainTexture = (Resources.Load("Textures/Strategy/sea3_snow") as Texture); } else if (mAreaId == 15 || mAreaId == 16 || mAreaId == 17) { mTexture_sallyBGsky.mainTexture = (Resources.Load("Textures/Strategy/sea4_Sunny_sky2") as Texture); mTexture_sallyBGclouds.mainTexture = (Resources.Load("Textures/Strategy/sea4_Sunny_clouds") as Texture); mTexture_sallyBGcloudRefl.mainTexture = (Resources.Load("Textures/Strategy/sea4_Sunny_clouds") as Texture); mTexture_sallyBGcloudRefl.height = 120; mTexture_sallyBGcloudRefl.alpha = 0.25f; mTexture_bgSea.mainTexture = (Resources.Load("Textures/Strategy/sea4_Sunny_sea") as Texture); mTexture_snow.mainTexture = null; } else { mTexture_sallyBGsky.mainTexture = (Resources.Load("Textures/Strategy/sea1_Sunny_sky") as Texture); mTexture_sallyBGclouds.mainTexture = (Resources.Load("Textures/Strategy/sea1_Sunny_clouds") as Texture); mTexture_sallyBGcloudRefl.mainTexture = (Resources.Load("Textures/Strategy/sea1_Sunny_clouds") as Texture); mTexture_sallyBGcloudRefl.height = 140; mTexture_sallyBGcloudRefl.alpha = 0.25f; mTexture_bgSea.mainTexture = (Resources.Load("Textures/Strategy/sea1_Sunny_sea") as Texture); mTexture_snow.mainTexture = null; } return(true); }
protected override bool Init() { this.isAnimationStarted = false; this.mDisplaySwipeRegion.SetEventCatchCamera(this.mCamera); this.mDisplaySwipeRegion.SetOnSwipeActionJudgeCallBack(new UIDisplaySwipeEventRegion.SwipeJudgeDelegate(this.OnSwipeAction)); this.mStageSelectRoot.set_localPosition(new Vector3(this.mCamera.get_transform().get_localPosition().x, this.mCamera.get_transform().get_localPosition().y)); this.mAreaId = StrategyTopTaskManager.Instance.TileManager.FocusTile.areaID; this.mStrategyTopTaskManager = StrategyTaskManager.GetStrategyTop(); this.mIsFinishedAnimation = false; this.mMapModels = StrategyTopTaskManager.GetLogicManager().SelectArea(this.mAreaId).Maps; this.mSortieManager = StrategyTopTaskManager.GetLogicManager().SelectArea(this.mAreaId); this.mKeyController = new KeyControl(0, 0, 0.4f, 0.1f); this.mKeyController.isLoopIndex = true; this.mKeyController.IsRun = false; TweenAlpha.Begin(GameObject.Find("Information Root"), 0.3f, 0f); TweenAlpha.Begin(GameObject.Find("Map_BG"), 0.3f, 0f); GameObject gameObject = StrategyTopTaskManager.Instance.TileManager.Tiles[this.mAreaId].getSprite().get_gameObject(); this.mTransform_AnimationTile = Util.Instantiate(gameObject, GameObject.Find("Map Root").get_gameObject(), true, false).get_transform(); this.mAnimation_MapObjects = this.mTransform_StageCovers.GetComponent <Animation>(); base.StartCoroutine(this.StartSeaAnimationCoroutine()); IEnumerator enumerator = this.StartSeaAnimationCoroutine(); base.StartCoroutine(enumerator); this.mTransform_StageCovers.SetActive(true); this.mTransform_StageCovers.Find("UIStageCovers").GetComponent <UIWidget>().alpha = 0.001f; this.SelectedHexAnimation(delegate { base.StartCoroutine(this.InititalizeStageCovers(delegate { this.mTransform_StageCovers.GetComponent <Animation>().Play("SortieAnimation"); this.ShowMaps(this.mMapModels); })); }); if (this.mAreaId == 2 || this.mAreaId == 4 || this.mAreaId == 5 || this.mAreaId == 6 || this.mAreaId == 7 || this.mAreaId == 10 || this.mAreaId == 14) { this.mTexture_sallyBGsky.mainTexture = (Resources.Load("Textures/Strategy/sea2_Sunny_sky") as Texture); this.mTexture_sallyBGclouds.mainTexture = (Resources.Load("Textures/Strategy/sea2_Sunny_clouds") as Texture); this.mTexture_sallyBGcloudRefl.mainTexture = (Resources.Load("Textures/Strategy/sea2_Sunny_clouds") as Texture); this.mTexture_sallyBGcloudRefl.height = 91; this.mTexture_sallyBGcloudRefl.alpha = 0.25f; this.mTexture_bgSea.mainTexture = (Resources.Load("Textures/Strategy/sea2_Sunny_sea") as Texture); this.mTexture_snow.mainTexture = null; } else if (this.mAreaId == 3 || this.mAreaId == 13) { this.mTexture_sallyBGsky.mainTexture = (Resources.Load("Textures/Strategy/sea3_Sunny_sky") as Texture); this.mTexture_sallyBGclouds.mainTexture = (Resources.Load("Textures/Strategy/sea3_Sunny_clouds") as Texture); this.mTexture_sallyBGcloudRefl.mainTexture = (Resources.Load("Textures/Strategy/sea3_Sunny_clouds") as Texture); this.mTexture_sallyBGcloudRefl.height = 90; this.mTexture_sallyBGcloudRefl.alpha = 0.75f; this.mTexture_bgSea.mainTexture = (Resources.Load("Textures/Strategy/sea3_Sunny_sea") as Texture); this.mTexture_snow.mainTexture = (Resources.Load("Textures/Strategy/sea3_snow") as Texture); } else if (this.mAreaId == 15 || this.mAreaId == 16 || this.mAreaId == 17) { this.mTexture_sallyBGsky.mainTexture = (Resources.Load("Textures/Strategy/sea4_Sunny_sky2") as Texture); this.mTexture_sallyBGclouds.mainTexture = (Resources.Load("Textures/Strategy/sea4_Sunny_clouds") as Texture); this.mTexture_sallyBGcloudRefl.mainTexture = (Resources.Load("Textures/Strategy/sea4_Sunny_clouds") as Texture); this.mTexture_sallyBGcloudRefl.height = 120; this.mTexture_sallyBGcloudRefl.alpha = 0.25f; this.mTexture_bgSea.mainTexture = (Resources.Load("Textures/Strategy/sea4_Sunny_sea") as Texture); this.mTexture_snow.mainTexture = null; } else { this.mTexture_sallyBGsky.mainTexture = (Resources.Load("Textures/Strategy/sea1_Sunny_sky") as Texture); this.mTexture_sallyBGclouds.mainTexture = (Resources.Load("Textures/Strategy/sea1_Sunny_clouds") as Texture); this.mTexture_sallyBGcloudRefl.mainTexture = (Resources.Load("Textures/Strategy/sea1_Sunny_clouds") as Texture); this.mTexture_sallyBGcloudRefl.height = 140; this.mTexture_sallyBGcloudRefl.alpha = 0.25f; this.mTexture_bgSea.mainTexture = (Resources.Load("Textures/Strategy/sea1_Sunny_sea") as Texture); this.mTexture_snow.mainTexture = null; } return(true); }
private IEnumerator GoSortie() { SortieManager sortieManager = new SortieManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.AreaId); MapModel mapModel = sortieManager.Maps[0]; RetentionData.SetData(new Hashtable { { "sortieMapManager", sortieManager.GoSortie(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.Id, mapModel.MstId) }, { "rootType", 0 }, { "shipRecoveryType", ShipRecoveryType.None }, { "escape", false } }); Object.Destroy(SingletonMonoBehaviour <PortObjectManager> .Instance.gameObject); Object.Destroy(GameObject.Find("Information Root")); Object.Destroy(GameObject.Find("OverView")); yield return(Application.LoadLevelAsync(Generics.Scene.SortieAreaMap.ToString())); while (Application.loadedLevelName != "SortieAreaMap") { yield return(StartCoroutine(WaitForCount("Wait For sortieareamap", 5))); } while (Application.loadedLevelName != "Strategy") { if ((bool)GameObject.Find("BattleStartBtn")) { GameObject.Find("BattleStartBtn").GetComponent <UIButton>().onClick[0].Execute(); } if ((bool)GameObject.Find("SelectTouchesArea")) { GameObject.Find("SelectTouchesArea").SendMessage("OnClick"); } if ((bool)GameObject.Find("NextBtn")) { GameObject.Find("NextBtn").SendMessage("OnClick"); } if ((bool)GameObject.Find("GearBtn")) { GameObject.Find("GearBtn").SendMessage("OnClick"); } if ((bool)GameObject.Find("WithdrawalHexExBtn")) { GameObject.Find("WithdrawalHexExBtn").GetComponent <UIWithdrawalButton>().OnDecide(); } if ((bool)GameObject.Find("WithdrawalExBtn")) { GameObject.Find("WithdrawalExBtn").GetComponent <UIAdvancingWithDrawalButton>().OnDecide(); } yield return(StartCoroutine(WaitForCount("Wait For Strategy", 3))); } }