protected override void OnGotoNextRooms(RoomGenerateBase.Room room) { float x = base.m_Parent.position.x + GameLogic.Random((float)-2f, (float)2f); float z = base.m_Parent.position.z + GameLogic.Random((float)0f, (float)2f); base.transform.position = new Vector3(x, 0f, z); }
public static void OnGotoNextRoom(RoomGenerateBase.Room room) { mRemoveList.Clear(); Dictionary <GameObject, EffectClass> .Enumerator enumerator = mList.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <GameObject, EffectClass> current = enumerator.Current; if (current.Value.bGotoRoomDeInit) { KeyValuePair <GameObject, EffectClass> pair2 = enumerator.Current; mRemoveList.Add(pair2.Key); } else { KeyValuePair <GameObject, EffectClass> pair3 = enumerator.Current; pair3.Value.OnGotoNextRoom(room); } } int num = 0; int count = mRemoveList.Count; while (num < count) { GameObject o = mRemoveList[num]; Remove(o); GameLogic.EffectCache(o); num++; } }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { if (room.RoomID > this.level) { base.Uninstall(); } }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { this.good.transform.position = base.m_Entity.position; this.KillSequence(); this.good.SetActive(false); this.mParticle.Clear(); this.ctrl.RemoveGoods(); }
protected virtual void OnGotoNextRoom(RoomGenerateBase.Room room) { float angle = GameLogic.Random((float)-80f, (float)80f); float x = MathDxx.Sin(angle); float z = MathDxx.Cos(angle); base.transform.position = base.m_Parent.position + (new Vector3(x, 0f, z) * GameLogic.Random((float)0f, (float)1f)); }
public void OnGotoNextRoom(RoomGenerateBase.Room room) { int index = 0; int length = this.list.Length; while (index < length) { this.list[index].OntoNextRoom(room); index++; } }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { if ((GameLogic.Hold.Guide != null) && (this.Button_Pause != null)) { this.Button_Pause.gameObject.SetActive(!GameLogic.Hold.Guide.GetNeedGuide()); } else { this.Button_Pause.gameObject.SetActive(true); } }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { int num = 0; int count = this.mClouds.Count; while (num < count) { this.mClouds[num].Deinit(); num++; } this.mClouds.Clear(); }
public void OntoNextRoom(RoomGenerateBase.Room room) { this.KillSequence(); base.gameObject.SetActive(false); this.seq = TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 0.2f), new TweenCallback(this, this.< OntoNextRoom > m__0)); if (this.particles != null) { int index = 0; int length = this.particles.Length; while (index < length) { this.particles[index].Clear(); index++; } } }
private void CreateWave() { this.waveid++; RoomGenerateBase.Room room = new RoomGenerateBase.Room(); room.SetRoomID(this.waveid); string[] roomIDs = GameLogic.Hold.BattleData.GetActiveLevelData(this.waveid).RoomIDs; string tmxid = base.RandomTmx(roomIDs); room.SetTmx(tmxid); MapCreator.Transfer t = new MapCreator.Transfer { roomctrl = base.roomCtrl, roomid = base.currentRoomID, resourcesid = room.ResourcesID, tmxid = tmxid, delay = true }; GameLogic.Release.MapCreatorCtrl.CreateMap(t); }
private void CreateWave() { this.ClearCurrentRoom(); base.currentRoomID++; RoomGenerateBase.Room room = new RoomGenerateBase.Room(); room.SetRoomID(base.currentRoomID); string[] tmxids = null; int num = (int)GameLogic.Hold.BattleData.Challenge_GetEvent("MatchDefenceTime_get_random_roomid_row"); switch (num) { case 0: tmxids = GameLogic.Hold.BattleData.GetActiveLevelData(base.currentRoomID).RoomIDs; break; case 1: tmxids = GameLogic.Hold.BattleData.GetActiveLevelData(base.currentRoomID).RoomIDs1; break; case 2: tmxids = GameLogic.Hold.BattleData.GetActiveLevelData(base.currentRoomID).RoomIDs2; break; default: { object[] args = new object[] { num }; SdkManager.Bugly_Report("RoomGenerateMatchDefenceTime.CreateWave", Utils.FormatString("(NotifyConst.MatchDefenceTime.get_random_roomid_row[{0}] is invalid.", args)); break; } } XRandom random = (XRandom)GameLogic.Hold.BattleData.Challenge_GetEvent("MatchDefenceTime_get_xrandom"); string tmxid = base.RandomTmx(tmxids, random); room.SetTmx(tmxid); MapCreator.Transfer t = new MapCreator.Transfer { roomctrl = base.roomCtrl, roomid = base.currentRoomID, resourcesid = room.ResourcesID, tmxid = room.TMXID, delay = true }; GameLogic.Release.MapCreatorCtrl.CreateMap(t); }
protected override void OnInit(object data = null) { base.OpenDoor(false); GameLogic.Hold.Guide.GuideBattleNext(); if (data != null) { RoomControlBase.Mode_LevelData data2 = (RoomControlBase.Mode_LevelData)data; if (data2 != null) { this.room = data2.room; this.nextRoom = data2.nextroom; } } if (this.room != null) { base.SetLayer(this.room.RoomID); } this.DoorDownShow(); this.ExcuteLayer(); this.OnInitStage(); }
protected virtual void OnGotoNextRooms(RoomGenerateBase.Room room) { GameLogic.Release.Entity.RemovePartBody(this, true); }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { base.ResetShieldHitValue(); }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { this.update_attribute(true); TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(this.mSeqPool.Get(), this.time), new TweenCallback(this, this.< OnGotoNextRoom > m__0)); }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { base.m_EntityHero.m_HatredTarget = null; }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { this.OnGotoNextRooms(room); }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { this.InitData(); }
private void OnGotoNextRoom(RoomGenerateBase.Room room) { base.ResetShieldCount(); }