Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        objekt          = GameObject.FindObjectOfType(typeof(player_script)) as player_script;
        nextEventScript = GameObject.FindObjectOfType(typeof(event_script_P)) as event_script_P;
        R3EventScript   = GameObject.FindObjectOfType(typeof(event_script_R2)) as event_script_R2;
        //nextEventScript.activate ();
        R3EventScript.activate();
        // Test No. 1
        //objekt.moveRelative(0,0);

        // Test No. 2
        //objekt.moveRelative(1,0);

        // Test No. 3
        //objekt.moveRelative(0,1);

        // Test No. 4
        //objekt.moveRelative(1,1);

        // Test No. 5
        //objekt.moveRelative(-1,0);

        // Test No. 6
        //objekt.moveRelative(0,-1);

        // Test No. 7
        //objekt.moveRelative(-1,-2);

        //Test No. 8
        //objekt.moveRelative(4,-2);

        //Test No. 9
        //objekt.moveRelative(-1,2);
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        //Debug.Log("Event script for room 1 initialized!");
        exitDoor  = GameObject.FindWithTag("Exit_R1").GetComponent <door_script>();
        entryDoor = GameObject.FindWithTag("Entry_R1").GetComponent <door_script>();

        player            = GameObject.FindObjectOfType(typeof(player_script)) as player_script;
        nextEventScript   = GameObject.FindObjectOfType(typeof(event_script_R2)) as event_script_R2;
        dialogManager     = GameObject.FindObjectOfType(typeof(dialog_script)) as dialog_script;
        beautifulPainting = GameObject.FindObjectOfType(typeof(bildchange_script)) as bildchange_script;
        scaryPainting     = GameObject.FindObjectOfType(typeof(bild_script)) as bild_script;
    }
Exemplo n.º 3
0
    void Start()
    {
        roomA = GameObject.FindObjectOfType(typeof(event_script_A)) as event_script_A;
        room1 = GameObject.FindObjectOfType(typeof(event_script_R1)) as event_script_R1;
        room2 = GameObject.FindObjectOfType(typeof(event_script_R2)) as event_script_R2;
        room3 = GameObject.FindObjectOfType(typeof(event_script_R3)) as event_script_R3;
        room4 = GameObject.FindObjectOfType(typeof(event_script_R4)) as event_script_R4;
        room5 = GameObject.FindObjectOfType(typeof(event_script_R5)) as event_script_R5;

        player             = GameObject.FindObjectOfType(typeof(player_script)) as player_script;
        playerCameraObject = GameObject.FindWithTag("MainCamera");
        playerCamera       = playerCameraObject.GetComponent <Camera> ();
    }