沒有配金幣掉落,然後掉落10金幣bug
過了新手還走新手關的bug
| | |
| | | m_GameObject: {fileID: 8440900062448590361} |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalScale: {x: 1, y: 1, z: 1} |
| | | m_LocalScale: {x: 1.2, y: 1.2, z: 1.2} |
| | | m_Children: |
| | | - {fileID: 921286385742553488} |
| | | m_Father: {fileID: 0} |
| | |
| | | m_GameObject: {fileID: 8440900062448590361} |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalScale: {x: 1, y: 1, z: 1} |
| | | m_LocalScale: {x: 1.2, y: 1.2, z: 1.2} |
| | | m_Children: |
| | | - {fileID: 921286385742553488} |
| | | m_Father: {fileID: 0} |
| | |
| | | m_GameObject: {fileID: 8440900062448590361} |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalScale: {x: 1, y: 1, z: 1} |
| | | m_LocalScale: {x: 1.2, y: 1.2, z: 1.2} |
| | | m_Children: |
| | | - {fileID: 921286385742553488} |
| | | m_Father: {fileID: 0} |
| | |
| | | /// <param name="increment">the change in currency</param> |
| | | public void AddCurrency(int increment) |
| | | { |
| | | if (increment == 0) return; |
| | | |
| | | ChangeCurrency(increment); |
| | | } |
| | | |
| | |
| | | portDic = new Dictionary<int, List<EndlessPortConfig>>(); |
| | | InitPortList(); |
| | | InitPortEnemiesTotalHP(); |
| | | int score = GetLevelScore(1); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | int guide = PlayerPrefs.GetInt("GemBattleGuide"); |
| | | GameConfig.IsNewbie = guide == 0; |
| | | // 必须在EndlessPortData初始化之前 |
| | | EndlessEnemyData.Init(); |
| | | EndlessPortData.Init(); |
| | | EndlessBuffData.Init(); |
| | | EndlessBossData.Init(); |
| | | EndlessBossSkillData.Init(); |
| | | //EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.JsonDataReadDone); |
| | | GameConfig.JsonReadDone = true; |
| | | } |
| | | } |
| | |
| | | if (moveSpeed > 0) |
| | | fMoveSpeed = moveSpeed; |
| | | |
| | | // 金币掉落大于零. |
| | | if (coinDrop > 0) |
| | | mLootDrop.lootDropped = coinDrop; |
| | | |
| | | mAgentData.speed = fMoveSpeed; |
| | |
| | | /// <summary> |
| | | /// The amount of loot/currency dropped when object "dies" |
| | | /// </summary> |
| | | public int lootDropped = 1; |
| | | public int lootDropped; |
| | | |
| | | /// <summary> |
| | | /// The attached DamagableBehaviour |
| | |
| | | |
| | | private void PlayDropGold(int lootDropped, Vector3 worldPos) |
| | | { |
| | | if (lootDropped == 0) return; |
| | | |
| | | GameObject mainUI = GameObject.Find("MainUI"); |
| | | GameObject dropGoldPrefab = Resources.Load<GameObject>("Prefabs/DropGold"); |
| | | GameObject obj = Poolable.TryGetPoolable(dropGoldPrefab); |
| | |
| | | /// </summary> |
| | | public virtual void StartLevel() |
| | | { |
| | | EndlessPortData.Init(); |
| | | ChangeLevelState(LevelState.SpawningEnemies); |
| | | SelfPlacementArea.startCoinGenMode(); |
| | | } |