public void OnMouseEnter() { if (GameController.OrderlyInScene && IsActionActive && !GameController.InMenuScreen) { SetHighlight(FindObjectOfType <HighlightController>().HighlightShader); MouseCursorController.SetCursorToClickable(); } }
private void OnMouseEnter() { if (IsActive) { foreach (var mat in HighlightMaterials) { mat.shader = HighlightShader; } var pos = Camera.main.WorldToScreenPoint(transform.position) + UIOffset; PopUpUI = Instantiate(LevelSelectionUIPrefab, UIPos.position, Quaternion.identity, MainCanvas); PopUpUI.GetComponent <LevelSelectionUI>().Initialize(LevelConfig, LevelNo, LevelMdl); CursorCtrl.SetCursorToClickable(); } }