} //isDocked public void onTarget(float deltaY, ArcheryTarget target, ContentManager content) { isOnTarget = true; archerytarget = new ArcheryTarget(content); archerytarget.changePosY(target.getPosition().Y); changeY = deltaY; } //onTarget
} //Vector2 position public void changeArcheryTargetPosY(float newY) { archerytarget.changePosY(newY); } // changeArcheryTargetPosY
public void onTarget(float deltaY, ArcheryTarget target, ContentManager content) { isOnTarget = true; archerytarget = new ArcheryTarget(content); archerytarget.changePosY(target.getPosition().Y); changeY = deltaY; }