void OnMouseEnter() { //show preview stats window and Hide the delay bar stuff if (pm.get_battle().allowPreview&& pm.search_unit(x, y) != null) //y, x? needs testing { pm.get_battle().showStatPreviewWindow(pm.search_unit(x, y)); } if (pm.allowHover || repositionPlace) { //call coloring function. makes and other affected tiles red. //sprite.color = new Color(250f / 255f, 100f / 255f, 100f / 255f); //Debug.Log("colouring"); if (repositionPlace) { //Debug.Log("repositionplace is true"); pm.highlight_helper(x, y, useGreen: false, isRepo: true); } else { pm.highlight_helper(x, y); } } //also: everytime, even if allowHover is false, hovering a tile will show its unit's status profile. }