void ToggleVisibility(bool _isVisible) { cursor.GetComponent <Image>().enabled = _isVisible; cursor.gameObject.ToggleChildren(_isVisible); GetComponent <Image>().color = new Color(0.5f, 0.5f, 0.5f, 1f); gameObject.ToggleChildren(_isVisible); }
public override void OnEnter(CursorBehaviour cursor) { border.color = cursor.GetComponent <Image>().color; }