void CmdBlockDefence() { int x = (int)Math.Round(transform.position.x); int y = (int)Math.Round(transform.position.z); int _x = (int)Math.Round(originPos.x); int _y = (int)Math.Round(originPos.z); floor.BlockDefence(x - _x, y - _y, gameObject); }