|
@@ -45,22 +45,22 @@ namespace ReaderRabbit
|
|
|
{
|
|
|
m_CurrentNumberOfBoxes = 3;
|
|
|
|
|
|
- foreach (Transform child in oneBoxTransform){ //mycode --rafael --> fill m_OneBoxItem List.
|
|
|
+ foreach (Transform child in oneBoxTransform){
|
|
|
BoxItem boxItem = child.GetComponent<BoxItem>();
|
|
|
m_OneBoxItems.Add (boxItem);
|
|
|
}
|
|
|
|
|
|
- foreach (Transform child in twoBoxTransform){ //mycode --rafael --> fill m_TwoBoxItem List.
|
|
|
+ foreach (Transform child in twoBoxTransform){
|
|
|
BoxItem boxItem = child.GetComponent<BoxItem>();
|
|
|
m_TwoBoxesItems.Add (boxItem);
|
|
|
}
|
|
|
|
|
|
- foreach (Transform child in threeBoxTransform){ //mycode --rafael --> fill m_ThreeBoxItem List.
|
|
|
+ foreach (Transform child in threeBoxTransform){
|
|
|
BoxItem boxItem = child.GetComponent<BoxItem>();
|
|
|
m_ThreeBoxesItems.Add (boxItem);
|
|
|
}
|
|
|
|
|
|
- foreach (Transform child in fourBoxTransform){ //mycode --rafael --> fill m_FourBoxItem List.
|
|
|
+ foreach (Transform child in fourBoxTransform){
|
|
|
BoxItem boxItem = child.GetComponent<BoxItem>();
|
|
|
m_FourBoxesItems.Add (boxItem);
|
|
|
}
|
|
@@ -79,25 +79,25 @@ namespace ReaderRabbit
|
|
|
|
|
|
foreach (BoxItem i in m_FourBoxesItems)
|
|
|
{
|
|
|
- i.gameObject.transform.localScale = new Vector2 (Screen.width * 0.1f, Screen.height * 0.2f); //mycode --rafael --> made this beause the localization process.
|
|
|
+ i.gameObject.transform.localScale = new Vector2 (Screen.width * 0.1f, Screen.height * 0.2f);
|
|
|
i.gameObject.SetActive(false);
|
|
|
}
|
|
|
|
|
|
foreach (BoxItem i in m_ThreeBoxesItems)
|
|
|
{
|
|
|
- i.gameObject.transform.localScale = new Vector2 (Screen.width * 0.1f, Screen.height * 0.2f); //mycode --rafael --> made this beause the localization process.
|
|
|
+ i.gameObject.transform.localScale = new Vector2 (Screen.width * 0.1f, Screen.height * 0.2f);
|
|
|
i.gameObject.SetActive(false);
|
|
|
}
|
|
|
|
|
|
foreach (BoxItem i in m_TwoBoxesItems)
|
|
|
{
|
|
|
- i.gameObject.transform.localScale = new Vector2 (Screen.width * 0.1f, Screen.height * 0.2f); //mycode --rafael --> made this beause the localization process.
|
|
|
+ i.gameObject.transform.localScale = new Vector2 (Screen.width * 0.1f, Screen.height * 0.2f);
|
|
|
i.gameObject.SetActive(false);
|
|
|
}
|
|
|
|
|
|
foreach (BoxItem i in m_OneBoxItems)
|
|
|
{
|
|
|
- i.gameObject.transform.localScale = new Vector2 (Screen.width * 0.1f, Screen.height * 0.2f); //mycode --rafael --> made this beause the localization process.
|
|
|
+ i.gameObject.transform.localScale = new Vector2 (Screen.width * 0.1f, Screen.height * 0.2f);
|
|
|
i.gameObject.SetActive(false);
|
|
|
}
|
|
|
}
|