17 changed files with 243 additions and 17 deletions
@ -0,0 +1,60 @@ |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
public class MapUnitySettleManager : Singleton<MapUnitySettleManager> |
|||
{ |
|||
public void PlayerMudGridSettle(int value) |
|||
{ |
|||
if(GameManager .Instance .playerOn .whoColour == MapUnity.WhoColour.enemyColour ) |
|||
{ |
|||
Usermanager.Instance.AddPlayerAbnormalCondition_downSpeed(value); |
|||
} |
|||
else if (GameManager.Instance.playerOn.whoColour == MapUnity.WhoColour.playerColour) |
|||
{ |
|||
Usermanager.Instance.AddPlayerAbnormalCondition_upperSpeed(value); |
|||
} |
|||
|
|||
} |
|||
|
|||
public void EnemyRedGridSettle (EnemyNode enemyNode , int value) |
|||
{ |
|||
if (enemyNode.GetMapGrid().whoColour == MapUnity.WhoColour.playerColour) |
|||
{ |
|||
AddEnemyFireSeed(enemyNode, value); |
|||
} |
|||
|
|||
} |
|||
|
|||
#region 给敌方施加Buff方法
|
|||
|
|||
//给敌方施加火种
|
|||
public void AddEnemyFireSeed(EnemyNode enemyNode, int value) |
|||
{ |
|||
enemyNode.sufferAbnormalCondition(AbnormalCondition.fireSeed, value); |
|||
if (enemyNode.EnemyState.abnormalCondition[AbnormalCondition.fireSeed] >= 10) |
|||
{ |
|||
enemyNode.sufferDamage(Usermanager .Instance . DamageCalculation(15)); |
|||
enemyNode.EnemyState.abnormalCondition[AbnormalCondition.fireSeed] -= 10; |
|||
} |
|||
} |
|||
|
|||
#endregion
|
|||
|
|||
public void MapGridsSettle() |
|||
{ |
|||
PlayerMudGridSettle(1); |
|||
|
|||
if (EnemyManager.Instance.enemySpeedSortingList.Count > 0) |
|||
{ |
|||
for (int i = 0; i < EnemyManager.Instance.enemySpeedSortingList.Count; i++) |
|||
{ |
|||
if (EnemyManager.Instance.enemySpeedSortingList[i] != null) |
|||
{ |
|||
EnemyRedGridSettle(EnemyManager.Instance.enemySpeedSortingList[i], 3); |
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
fileFormatVersion: 2 |
|||
guid: 4fc97c2ed99c8104e89a3c496f4cf33b |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|||
@ -0,0 +1,8 @@ |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
public class ScenceManager : Singleton <ScenceManager> |
|||
{ |
|||
|
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
fileFormatVersion: 2 |
|||
guid: c4e609945f10ddd4289c176395cebad5 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue