예제 #1
0
        public override bool CheckWinner(Player candidate = null)
        {
            foreach (PLOT plot in Plot.TemplePlot)
            {
                PlotConstructionTemple temple = Plot.plotDictionary[plot] as PlotConstructionTemple;

                if (temple.Owner == null)
                {
                    return(false);
                }

                if (candidate == null)
                {
                    candidate = temple.Owner;
                }
                else
                {
                    if (candidate != temple.Owner)
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }
예제 #2
0
 public void SetPlot(Plot plot)
 {
     if (plot is PlotConstructionTemple)
     {
         Plot = plot as PlotConstructionTemple;
     }
     else
     {
         Debug.LogError("Someone set plot that not Construction Temple into Temple Buy UI");
     }
 }