Exemplo n.º 1
0
            public bool MoveNext()
            {
                uint num = (uint)this.$PC;

                this.$PC = -1;
                switch (num)
                {
                case 0u:
                    if (Find.Selector.SingleSelectedThing == base.Wearer)
                    {
                        Gizmo_EnergyShieldStatus giz = new Gizmo_EnergyShieldStatus();
                        giz.shield    = this;
                        this.$current = giz;
                        if (!this.$disposing)
                        {
                            this.$PC = 1;
                        }
                        return(true);
                    }
                    break;

                case 1u:
                    break;

                default:
                    return(false);
                }
                this.$PC = -1;
                return(false);
            }
Exemplo n.º 2
0
 public override IEnumerable <Gizmo> GetWornGizmos()
 {
     if (Find.Selector.SingleSelectedThing == base.Wearer)
     {
         Gizmo_EnergyShieldStatus gizmo_EnergyShieldStatus = new Gizmo_EnergyShieldStatus();
         gizmo_EnergyShieldStatus.shield = this;
         yield return(gizmo_EnergyShieldStatus);
     }
 }