public void Start() { GameObject roomIndex = GameObject.Find("_loadedRoom"); LoadRoomsWithStuff playerScript = roomIndex.GetComponent <LoadRoomsWithStuff>(); //GameObject.Find("roomIndex").GetComponent<RoomIndex>(); }
void Start() { mySm = GetComponent <LoadRoomsWithStuff> (); }
// Adding audiosource, grab scenemanager void Start() { myAS = gameObject.AddComponent <AudioSource> (); mySm = GetComponent <LoadRoomsWithStuff> (); }
void Start() { myRl = GameObject.Find("Managers").GetComponent <LoadRoomsWithStuff> (); }