void OnMouseDown() { if (!main_Script._isReverse) { if (canWalk) { //print("canWalk: " + canWalk); Hero_Script.checkDirection(this.gameObject); //print("after"); //return tile that canWalk = true } } else { print("can't click"); } }