Exemplo n.º 1
0
        // Token: 0x06004F2E RID: 20270 RVA: 0x001AAD18 File Offset: 0x001A8F18
        private void DrawDropSpotShadow(Vector3 loc)
        {
            Material shadowMaterial = this.ShadowMaterial;

            if (shadowMaterial == null)
            {
                return;
            }
            Skyfaller.DrawDropSpotShadow(loc, base.Rotation, shadowMaterial, this.def.skyfaller.shadowSize / this.FlightArc.Evaluate(this.TimeInAnimation), this.ticksToImpact);
        }
Exemplo n.º 2
0
        private void DrawDropSpotShadow()
        {
            Material shadowMaterial = this.ShadowMaterial;

            if (shadowMaterial == null)
            {
                return;
            }
            Skyfaller.DrawDropSpotShadow(base.DrawPos, base.Rotation, shadowMaterial, this.def.skyfaller.shadowSize, this.ticksToExit);
        }
Exemplo n.º 3
0
        public override void DrawAt(Vector3 drawLoc, bool flip = false)
        {
            Skyfaller.DrawDropSpotShadow(drawLoc, base.Rotation, this.ShadowMaterial, this.def.skyfaller.shadowSize, this.ticksToImpact);
            drawLoc.z += (Mathf.Pow(2f * this.TimeInAnimation - 1f, 2f) * -1f + 1f) * (float)(this.ticksToImpactMax / 30);
            bool flag = this.skyfallerPawn != null;

            if (flag)
            {
                this.skyfallerPawn.RenderPawnAt(drawLoc);
            }
        }
Exemplo n.º 4
0
 public override void DrawAt(Vector3 drawLoc, bool flip)
 {
     if (drawLoc.InBounds(Map))
     {
         this.pawnFlyer.Drawer.DrawAt(drawLoc);
         Material shadowMaterial = this.ShadowMaterial;
         if (!(shadowMaterial == null))
         {
             Skyfaller.DrawDropSpotShadow(base.DrawPos, base.Rotation, shadowMaterial, this.def.skyfaller.shadowSize, this.ticksSinceStart);
         }
         //DropPodAnimationUtility.DrawDropSpotShadow(this, this.ticksSinceStart);
     }
 }