Пример #1
0
    private void Awake()
    {
        GameObject interactionTextGO = Instantiate(textModel);

        interactionTextGO.transform.SetParent(interactionTextContainer);
        interactionTextGO.transform.localScale = new Vector3(1, 1, 1);
        interactionText = interactionTextGO.GetComponent <InteractionText>();
        ended           = true;
    }
Пример #2
0
 private void Start()
 {
     myInteractionText = FindObjectOfType <InteractionText>();
 }