// set position #region setposition public void SetPosition(IntRect pos) { SetPosition(pos.x, pos.y); }
public void LookAt(IntRect target) { squad.LookAt(target); }
public void LeaveFrom(IntRect pos, GameObject obj) { LeaveFrom(pos.x, pos.y, obj); }
public void MoveTo(IntRect pos, GameObject obj) { MoveTo(pos.x, pos.y, obj); }
public Vector3 GetTilePosition(IntRect pos) { return(GetTilePosition(pos.x, pos.y)); }
// get tile public Tile GetTile(IntRect pos) { return(GetTile(pos.x, pos.y)); }
public void MoveTo(IntRect newPos) { MoveTo(newPos.x, newPos.y); }
public void LookAt(IntRect target) { SetRotation(target - position); }
public void SetRotation(IntRect r) { SetRotation(r.x, r.y); }