Exemplo n.º 1
0
    public FocusAreaIndicator CreateFocusAreaIndicator(GameObject instantiated, FocusAreaObject focusArea)
    {
        FocusAreaIndicator indicator = new FocusAreaIndicator(instantiated);

        indicator.gameObject.transform.SetParent(craftingManager.transform);

        Vector2 worldToScreenPoint = RectTransformUtility.WorldToScreenPoint(Camera.main, focusArea.transform.position);

        indicator.SetPosition(worldToScreenPoint);

        indicator.SetTMPMessage(focusArea.ToString());

        return(indicator);
    }