Пример #1
0
    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.");
        }
    }
Пример #2
0
 private void OnMouseEnter()
 {
     starInfo.gameObject.SetActive(true);
     starInfo.position = transform.position;
     StarInfoBox.EditDetails(starName, starPos);
 }