本文介绍了C#x位置到x位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我处理我的if陈述吗? (这是示例代码)

Can some one help me with my if statement? (This is a example code)

if (You.Location => new Point(Wall.Location.y = 6))
          {
          }



所以粗鲁地说,如果您"到达墙"的位置大于墙壁上的6,然后做点什么,任何人都可以在这里帮助我,我将尽我所能尽力解释,以便得到答案,这就像一个文本示例



So its basily saying if ''You'' gets to ''Wall'' location that is greater then 6 on wall then do something can anyone help me here, im trying the explain this the best i can so i can get a answer, heres a like a text example

<br />
......(You).Wall 6<br />
............wall 7<br />
............wall 8<br />
............wall 9<br />
............wall 10<br />
............wall 11

推荐答案

if (wall.Location.Y >6 && You.Location.Y => Wall.Location.y))
          {
          }



那行不通吗?



is that not works?


这篇关于C#x位置到x位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 04:36