コード例 #1
0
 public override IEnumerable <Gizmo> GetCaravanGizmos(Caravan caravan)
 {
     if (this.CanTradeNow)
     {
         yield return(CaravanVisitUtility.TradeCommand(caravan));
     }
     if (base.GetComponent <CaravanRequestComp>() != null && base.GetComponent <CaravanRequestComp>().ActiveRequest)
     {
         yield return(CaravanVisitUtility.FulfillRequestCommand(caravan));
     }
 }
コード例 #2
0
        public override IEnumerable <Gizmo> GetCaravanGizmos(Caravan caravan)
        {
            if (this.CanTradeNow)
            {
                yield return((Gizmo)CaravanVisitUtility.TradeCommand(caravan));

                /*Error: Unable to find new state assignment for yield return*/;
            }
            if (base.GetComponent <CaravanRequestComp>() == null)
            {
                yield break;
            }
            if (!base.GetComponent <CaravanRequestComp>().ActiveRequest)
            {
                yield break;
            }
            yield return((Gizmo)CaravanVisitUtility.FulfillRequestCommand(caravan));

            /*Error: Unable to find new state assignment for yield return*/;
        }