﻿using UnityEngine;
using System.Collections;

public class GP_ResourcePhase : Phase
{

    public override void OnEnter()
    {
        base.OnEnter();

        var hexes = TowerManager.Instance.GetHexagonsInRange(CurrentPlayer, TowerType.ResourceTower);
        var vision = RangeUtils.GetPlayerVisionServer(CurrentPlayer);
        hexes.IntersectWith(vision);
        TowerManager.Instance.RemoveHexagonsOccupied(hexes);
        CurrentPlayer.AddResource(hexes.Count);
    }
}
﻿using UnityEngine;
using System.Collections;

public class GP_ResourcePhase : Phase
{
    /*
    public override void OnEnter()
    {
        base.OnEnter();

        var hexes = TowerManager.Instance.GetHexagonsInRange(CurrentPlayer, TowerType.ResourceTower);
        var vision = RangeUtils.GetPlayerVisionServer(CurrentPlayer);
        hexes.IntersectWith(vision);
        TowerManager.Instance.RemoveHexagonsOccupied(hexes);
        CurrentPlayer.AddResource(hexes.Count);
    }
    */

    public override void OnEnter()
    {
        base.OnEnter();

        CurrentPlayer.AddResource(CurrentPlayer.Production);
        CurrentPlayer.RpcAddLog("Your resource is increased by " + CurrentPlayer.Production + ".");
    }
}
Fix minor bug for mix mode.
Fix minor bug for mix mode.
