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); }
public override bool PlayerMeetsConditions(Player player) { Wonder wonder = player.GetComponentInChildren <Wonder>(); return(player && !player.IsDead() && wonder && !wonder.UnderConstruction()); }