Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        RaycastMetode = new RayNpc();

        animatorNpc   = GetComponent <Animator>();
        dialogueClass = new dialogueclassNPC();


        texto = GameObject.Find("Canvas/box Texto/mask/Text").GetComponent <Text>();

        ActualPosText = GameObject.Find("Canvas/box Texto/mask/Text").GetComponent <RectTransform>();

        PlayerScritp = GameObject.Find("personaje").GetComponent <movimiento>();


        boxTextImage[0] = GameObject.Find("Canvas/box Texto");
        boxTextImage[1] = GameObject.Find("Canvas/box Election");

        npcMove = GetComponent <Npc_move>();

        canvas = GameObject.Find("Canvas/").GetComponent <Canvas>();

        CanvasBrawler = GameObject.Find("baltle interface/").GetComponent <Canvas>();

        scritpBrawler = GameObject.Find("baltle interface/baltle interface").GetComponent <animationScritpBatle>();

        postext = ActualPosText.position;

        canvas.enabled = false;

        // boxTextImage[0].SetActive(false);
        // boxTextImage[1].SetActive(false);

        NpcDialogueClass = new dialogueclassNPC();

        Initalpostext = ActualPosText.position;

        NpcDialogueClass.initialTexTVar(ActualPosText);

        playerTransf = GameObject.Find("personaje").GetComponent <Transform>();
    }
Ejemplo n.º 2
0
    void Start()
    {
        texto = GameObject.Find("Canvas/box Texto/mask/Text").GetComponent <Text>();

        ActualPosText = GameObject.Find("Canvas/box Texto/mask/Text").GetComponent <RectTransform>();



        PlayerScritp = GameObject.Find("personaje").GetComponent <movimiento>();

        playerTransfor = GameObject.Find("personaje").GetComponent <Transform>();


        boxTextImage[0] = GameObject.Find("Canvas/box Texto");
        boxTextImage[1] = GameObject.Find("Canvas/box Election");

        TransformCorchetes = GameObject.Find("Canvas/box Election/Corchete").GetComponent <RectTransform>();

        npcMove = GetComponent <Npc_move>();

        canvas = GameObject.Find("Canvas/").GetComponent <Canvas>();

        postext = ActualPosText.position;

        canvas.enabled = false;

        // boxTextImage[0].SetActive(false);
        // boxTextImage[1].SetActive(false);

        NpcDialogueClass = new dialogueclassNPC();

        Initalpostext = ActualPosText.position;

        Raycast_Npc = new RayNpc();

        NpcDialogueClass.initialTexTVar(ActualPosText);
    }