diff --git a/Assets/Scenes/02_环保管家-Tsq.unity b/Assets/Scenes/02_环保管家-Tsq.unity
index 3abe37a..467a12b 100644
--- a/Assets/Scenes/02_环保管家-Tsq.unity
+++ b/Assets/Scenes/02_环保管家-Tsq.unity
@@ -44099,7 +44099,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
- m_IsActive: 1
+ m_IsActive: 0
--- !u!224 &822021582
RectTransform:
m_ObjectHideFlags: 0
@@ -44184,7 +44184,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
- m_Sprite: {fileID: 21300000, guid: 2f1ccfa62d041a84da37034d725cb6a8, type: 3}
+ m_Sprite: {fileID: 21300000, guid: 10c807616459bc34fb5a3833c7535928, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -90955,7 +90955,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
- m_IsActive: 1
+ m_IsActive: 0
--- !u!224 &1589317998
RectTransform:
m_ObjectHideFlags: 0
@@ -91040,7 +91040,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
- m_Sprite: {fileID: 21300000, guid: 06a248894c8e41944ac266cb317ffc54, type: 3}
+ m_Sprite: {fileID: 21300000, guid: 4e674e9115b77774f9cc9c50f4eada59, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
diff --git a/Assets/Scripts/Enum.cs b/Assets/Scripts/Enum.cs
index ef32182..e713880 100644
--- a/Assets/Scripts/Enum.cs
+++ b/Assets/Scripts/Enum.cs
@@ -15,6 +15,13 @@ public enum LookAtCameraName
иǿ쳧,
ΰҵ˾,
ֽƷ˾,
+ βƷ,
+ մһ˾,
+ ռ̼˾,
+ վط֯Ƽ˾,
+ ڷѿ˾,
+ ־ùҵ˾,
+ γǻṤҵˮ˾,
,
,
ũ
diff --git a/Assets/Scripts/TSQ/Manager.cs b/Assets/Scripts/TSQ/Manager.cs
index 78163c4..5e9121f 100644
--- a/Assets/Scripts/TSQ/Manager.cs
+++ b/Assets/Scripts/TSQ/Manager.cs
@@ -161,22 +161,22 @@ public class Manager : MonoBehaviour
}
}
- # region ̨
+ # region ̨˽
///
/// ̨˽
///
///
///
///
- public void LoadLedgerFromResources(GameObject showImage ,Image LedgerImage ,Button CloesBtn,string path)
+ public void LoadLedgerFromResources(GameObject ShowImage ,Image LedgerImage ,Button CloesBtn,string path)
{
- showImage.SetActive(true);
+ ShowImage.SetActive(true);
Sprite[] loadedSprites = Resources.LoadAll(path);
if (loadedSprites == null || loadedSprites.Length == 0)
{
- Debug.LogError($"· {path} δҵκSprite");
- showImage.SetActive(false);
+ Debug.LogError($"· {path} δҵκSpriteļûͼƬ");
+ ShowImage.SetActive(false);
return;
}
@@ -195,7 +195,7 @@ public class Manager : MonoBehaviour
CloesBtn.onClick.AddListener(() =>
{
bookPages?.Clear();
- showImage.SetActive(false);
+ ShowImage.SetActive(false);
Debug.Log("̨ѹرգbookPages б");
});
}
@@ -209,6 +209,11 @@ public class Manager : MonoBehaviour
{
currentPage--;
UpDatePageDisplay();
+ // if (currentPage == 1)
+ // {
+ // NextOrPrevBtn[0].gameObject.SetActive(false);
+ // NextOrPrevBtn[1].gameObject.SetActive(true);
+ // }
}
}
///
@@ -221,6 +226,11 @@ public class Manager : MonoBehaviour
{
currentPage++;
UpDatePageDisplay();
+ // if (currentPage == bookPages.Count)
+ // {
+ // NextOrPrevBtn[0].gameObject.SetActive(true);
+ // NextOrPrevBtn[1].gameObject.SetActive(false);
+ // }
}
}
///
@@ -231,16 +241,17 @@ public class Manager : MonoBehaviour
Debug.Log(bookPages.Count);
if (currentPage >= 1 && currentPage <= bookPages.Count)
{
- // ൱ԭ "bookPages[currentPage - 1].SetActive(true)"
LedgerImage.sprite = bookPages[currentPage - 1];
LedgerImage.gameObject.SetActive(true);
Debug.Log($"ʾ {currentPage} ҳ {bookPages.Count} ҳ");
}
else
{
- // ҳЧʾ
+ Debug.Log("ǰļΪ");
LedgerImage.gameObject.SetActive(false);
}
+ NextOrPrevBtn[0].gameObject.SetActive(currentPage > 1); // һҳ
+ NextOrPrevBtn[1].gameObject.SetActive(currentPage < bookPages.Count); // һҳ
}
#endregion
}