title: Unity eye to follow the player 2D
body: <p>I'm currently working on a narrative game and don't know how to accomplish something. The game is a 2D platformer so everything is build with sprites. I have a scene with trees and the trees have eyes, I want the eyes to follow the player along, but the "pupils" need to stay within the "holes" of the tree. I have made separate sprites for both the hole in the tree as well as the pupils of the eye's. I would prefer to write it in c# :).</p>
  
  <p>I have also added a concept screenshot, so you can get an impression about what i'm trying to accomplish.</p>
  
  <p><a href="https://imgur.com/pGCV8Uy" rel="nofollow noreferrer">http://imgur.com/pGCV8Uy</a></p>
  
  <p>Many thanks to the person who can explain to me how to accomplish this!</p>