Exemple #1
0
 // set position
 #region setposition
 public void SetPosition(IntRect pos)
 {
     SetPosition(pos.x, pos.y);
 }
Exemple #2
0
 public void LookAt(IntRect target)
 {
     squad.LookAt(target);
 }
Exemple #3
0
 public void LeaveFrom(IntRect pos, GameObject obj)
 {
     LeaveFrom(pos.x, pos.y, obj);
 }
Exemple #4
0
 public void MoveTo(IntRect pos, GameObject obj)
 {
     MoveTo(pos.x, pos.y, obj);
 }
Exemple #5
0
 public Vector3 GetTilePosition(IntRect pos)
 {
     return(GetTilePosition(pos.x, pos.y));
 }
Exemple #6
0
 // get tile
 public Tile GetTile(IntRect pos)
 {
     return(GetTile(pos.x, pos.y));
 }
Exemple #7
0
 public void MoveTo(IntRect newPos)
 {
     MoveTo(newPos.x, newPos.y);
 }
Exemple #8
0
 public void LookAt(IntRect target)
 {
     SetRotation(target - position);
 }
Exemple #9
0
 public void SetRotation(IntRect r)
 {
     SetRotation(r.x, r.y);
 }