/** Same as draw (IGraphics, int, int) but takes the offset as a FinalPoint. * * @see #draw(IGraphics, int, int) */ public void draw(IGraphics graphics, FinalPoint offset) { draw(graphics, offset.x, offset.y); }
/** Same as drawLeftOf (IGraphics, DrawShape, int, int, int) but takes the * offset as a FinalPoint. * * @see #drawLeftOf (IGraphics, DrawShape, int, int, int) */ public void drawLeftOf(IGraphics graphics, DrawShape target, FinalPoint targetOffset, int gap) { drawLeftOf(graphics, target, targetOffset.x, targetOffset.y, gap); }
void Start() { HPObject = GameObject.FindObjectOfType <FinalPoint>(); image = GetComponent <Image>(); }