コード例 #1
0
ファイル: Camera.cs プロジェクト: nicolas-repiquet/Granite
 public Camera()
 {
     m_location = new LocationComponent(this);
     m_target = new FollowTargetComponent(this, m_location);
     m_restrictPosition = new RestrictLocationComponent(this, m_location);
     m_zoom = 1.0;
 }
コード例 #2
0
 public FollowTargetComponent(Entity entity, LocationComponent location)
     : base(entity)
 {
     m_location = location;
 }
コード例 #3
0
 public RestrictLocationComponent(Entity entity, LocationComponent location)
     : base(entity)
 {
     m_location = location;
 }