| | |
| | | public bool opponentSide { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 播放充能状态特效. |
| | | /// </summary> |
| | | /// <param name="play"></param> |
| | | public void PlayEnergyEffect( bool play) |
| | | { |
| | | if( play) |
| | | { |
| | | if( !opponentSide) |
| | | { |
| | | ((TowerPlacementGrid)GameUI.instance.selfTowerPlaceArea).PlayEnergyEffect(gridPosition.x, true); |
| | | } |
| | | else |
| | | { |
| | | ((TowerPlacementGrid)OpponentMgr.instance.m_CurrentArea).PlayEnergyEffect(gridPosition.x, true); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if ( !opponentSide) |
| | | { |
| | | ((TowerPlacementGrid)GameUI.instance.selfTowerPlaceArea).PlayEnergyEffect(gridPosition.x, false); |
| | | } |
| | | else |
| | | { |
| | | ((TowerPlacementGrid)OpponentMgr.instance.m_CurrentArea).PlayEnergyEffect(gridPosition.x, false); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 当前是否处于攻击模式 |
| | | /// </summary> |
| | | public bool bInAttackMode |