Exemplo n.º 1
0
    public bool comprobarInteraccio(GameObject origen)
    {
        DialogCameraScript DCScript = GameObject.Find("DialogLayout").GetComponent <DialogCameraScript>();

        Debug.Log("Origen de combinacio: " + origen);

        ConversationNodeClass nodeALlencar = defaultNode;

        if (objecteBo == origen)
        {
            return(true);
        }
        else
        {
            foreach (erronis erroni in objectesErronis)
            {
                foreach (GameObject objecte in erroni.objectes)
                {
                    if (objecte == origen)
                    {
                        nodeALlencar      = erroni.frase;
                        DCScript.NextNode = nodeALlencar;
                        DCScript.enabled  = true;
                        return(false);
                    }
                }
            }
            DCScript.NextNode = nodeALlencar;
            DCScript.enabled  = true;
            return(false);
        }
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        cCamera1 = GameObject.Find ("Player").GetComponentInChildren<Camera> ();
        MCScript = GameObject.Find("Player").GetComponent<mouseControl>();
        //cCamera2 = GameObject.Find ("Camera2").camera;
        cCameraDialog = GameObject.Find ("DialogCamera").camera;

        DCScript = GameObject.Find ("DialogLayout").GetComponent<DialogCameraScript>();
        DCTexture = GameObject.Find ("DialogLayout").guiTexture;
        DCTexture.enabled = false;

        cCamera1.enabled = false;
        //cCamera2.enabled = false;
        cCameraDialog.enabled = false;
        DCScript.enabled = false;
        stateIn = false;
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        cCamera1 = GameObject.Find("Player").GetComponentInChildren <Camera> ();
        MCScript = GameObject.Find("Player").GetComponent <mouseControl>();
        //cCamera2 = GameObject.Find ("Camera2").camera;
        cCameraDialog = GameObject.Find("DialogCamera").camera;

        DCScript          = GameObject.Find("DialogLayout").GetComponent <DialogCameraScript>();
        DCTexture         = GameObject.Find("DialogLayout").guiTexture;
        DCTexture.enabled = false;


        cCamera1.enabled = false;
        //cCamera2.enabled = false;
        cCameraDialog.enabled = false;
        DCScript.enabled      = false;
        stateIn = false;
    }
Exemplo n.º 4
0
 void Start()
 {
     DCScript = GameObject.Find("DialogLayout").GetComponent <DialogCameraScript>();
 }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     //CCScript = GameObject.Find("CameraControl").GetComponent<CameraControl>();
     DCScript = GameObject.Find("DialogLayout").GetComponent <DialogCameraScript>();
     MCScript = GameObject.Find("Player").GetComponent <mouseControl> ();
 }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     //CCScript = GameObject.Find("CameraControl").GetComponent<CameraControl>();
     DCScript = GameObject.Find ("DialogLayout").GetComponent<DialogCameraScript>();
     MCScript = GameObject.Find ("Player").GetComponent<mouseControl> ();
 }
Exemplo n.º 7
0
 void Start()
 {
     DCScript = GameObject.Find ("DialogLayout").GetComponent<DialogCameraScript>();
 }