private void Start() { StarInfo.starInfo = starInfoBox; StarInfo.cs = canvasScaler; starInfoBox.gameObject.SetActive(false); if (instance == null) { instance = this; } else { Debug.Log("Multiple star info box's detected. Please use only one."); } }
private void OnMouseEnter() { starInfo.gameObject.SetActive(true); starInfo.position = transform.position; StarInfoBox.EditDetails(starName, starPos); }