Beispiel #1
0
 //Finding all GameObjects needed in the script
 void Start()
 {
     thePlayer     = GameObject.Find("Character");
     walkingScript = thePlayer.GetComponent <Walking>();
     lever1Script  = lever1.GetComponent <Lever1>();
     lever3Script  = lever3.GetComponent <Lever3>();
 }
Beispiel #2
0
    //Finding all GameObjects needed in the script
    void Start()
    {
        thePlayer     = GameObject.Find("Character");
        walkingScript = thePlayer.GetComponent <Walking>();

        lever1Script = lever1.GetComponent <Lever1>();
        lever2Script = lever2.GetComponent <Lever2>();
        lever3Script = lever3.GetComponent <Lever3>();

        //itemC = GameObject.Find("C");
        itemC = GameObject.Find("C");
        itemE = GameObject.Find("E");
        itemF = GameObject.Find("F").GetComponent <Image>();
    }