示例#1
0
 public void BottomOn(Actor o)
 {
     o.SetLocation(GetWidth() / 2 - o.GetWidth() / 2, GetHeight()
                   - o.GetHeight());
 }
示例#2
0
 public void TopOn(Actor o)
 {
     o.SetLocation(GetWidth() / 2 - o.GetWidth() / 2, 0);
 }
示例#3
0
 public void RightOn(Actor o)
 {
     o.SetLocation(GetWidth() - o.GetWidth(), GetHeight() / 2
                   - o.GetHeight() / 2);
 }
示例#4
0
文件: LLayer.cs 项目: keppelcao/LGame
 public void BottomOn(Actor obj0)
 {
     obj0.SetLocation(GetWidth() / 2 - obj0.GetWidth() / 2, GetHeight()
             - obj0.GetHeight());
 }
示例#5
0
 public void CenterOn(Actor o)
 {
     o.SetLocation(GetWidth() / 2 - o.GetWidth() / 2, GetHeight()
                   / 2 - o.GetHeight() / 2);
 }
示例#6
0
文件: LLayer.cs 项目: keppelcao/LGame
 public void TopOn(Actor obj0)
 {
     obj0.SetLocation(GetWidth() / 2 - obj0.GetWidth() / 2, 0);
 }
示例#7
0
文件: LLayer.cs 项目: keppelcao/LGame
 public void RightOn(Actor obj0)
 {
     obj0.SetLocation(GetWidth() - obj0.GetWidth(), GetHeight() / 2
             - obj0.GetHeight() / 2);
 }
示例#8
0
文件: LLayer.cs 项目: keppelcao/LGame
 public void CenterOn(Actor obj0)
 {
     obj0.SetLocation(GetWidth() / 2 - obj0.GetWidth() / 2, GetHeight()
             / 2 - obj0.GetHeight() / 2);
 }
示例#9
0
 public void RightOn(Actor obj0)
 {
     obj0.SetLocation(GetWidth() - obj0.GetWidth(), GetHeight() / 2
                      - obj0.GetHeight() / 2);
 }
示例#10
0
 public void TopOn(Actor obj0)
 {
     obj0.SetLocation(GetWidth() / 2 - obj0.GetWidth() / 2, 0);
 }
示例#11
0
 public void TopOn(Actor o)
 {
     o.SetLocation(GetWidth() / 2 - o.GetWidth() / 2, 0);
 }
示例#12
0
 public void RightOn(Actor o)
 {
     o.SetLocation(GetWidth() - o.GetWidth(), GetHeight() / 2
             - o.GetHeight() / 2);
 }