예제 #1
0
    public override bool PlayerMeetsCondition(Player p)
    {
        bool res = p && !p.IsDead();

        if (res)
        {
            Wonder w = p.buildings.GetComponentInChildren <Wonder> ();
            res = w && !w.UnderConstruction();
        }

        return(res);
    }
예제 #2
0
    public override bool PlayerMeetsConditions(Player player)
    {
        Wonder wonder = player.GetComponentInChildren <Wonder>();

        return(player && !player.IsDead() && wonder && !wonder.UnderConstruction());
    }