collides() публичный Метод

public collides ( Vector2 pos, Vector2 oPos, int down, int right, Vector2 charSize, System.Boolean blinked, float hitReduce ) : System.Boolean[]
pos Vector2
oPos Vector2
down int
right int
charSize Vector2
blinked System.Boolean
hitReduce float
Результат System.Boolean[]
Пример #1
0
        private Boolean inWall()
        {
            Boolean inAWall = false;

            Boolean[] collisions = arena.collides(new Vector2(playerRect.X, playerRect.Y), new Vector2(playerRect.X, playerRect.Y), 1, 0, new Vector2(playerRect.Width, playerRect.Height), false, 1f);
            foreach (bool b in collisions)
            {
                if (b)
                {
                    inAWall = true;
                    break;
                }
            }

            return(inAWall);
        }