Example #1
0
    public void Start()
    {
        GameObject         roomIndex    = GameObject.Find("_loadedRoom");
        LoadRoomsWithStuff playerScript = roomIndex.GetComponent <LoadRoomsWithStuff>();

        //GameObject.Find("roomIndex").GetComponent<RoomIndex>();
    }
Example #2
0
 void Start()
 {
     mySm = GetComponent <LoadRoomsWithStuff> ();
 }
Example #3
0
 // Adding audiosource, grab scenemanager
 void Start()
 {
     myAS = gameObject.AddComponent <AudioSource> ();
     mySm = GetComponent <LoadRoomsWithStuff> ();
 }
Example #4
0
 void Start()
 {
     myRl = GameObject.Find("Managers").GetComponent <LoadRoomsWithStuff> ();
 }