private void DrawBackground(Building_RogueAI parent) { CompProperties_Overlays.GraphicOverlay background = Props.background; GraphicData gdRogueAI = background.graphicDataDefault; gdRogueAI.Graphic.Draw(parent.DrawPos + new Vector3(0, -1, 0), parent.Rotation, parent, 0f); }
private void DrawEye(Building_RogueAI parent) { CompProperties_Overlays.GraphicOverlay overlay = Props.GetEyeOverlay(parent.goingRogue ? Building_RogueAI.Mood.Mad : parent.CurMoodCategory); GraphicData gdEye = overlay.graphicDataDefault; Vector3 drawPosEye = parent.DrawPos; drawPosEye.y += 0.046875f; drawPosEye += overlay.offsetDefault; SetAnimationOffset(ref drawPosEye); gdEye.Graphic.Draw(drawPosEye, parent.Rotation, parent, 0f); }