change the names

dev-maham
Mahamfatimaee 1 month ago
parent 273d383c45
commit 56c150b0b7

@ -4473,7 +4473,7 @@ GameObject:
- component: {fileID: 1646965583}
- component: {fileID: 1646965582}
m_Layer: 5
m_Name: Button (1)
m_Name: Achivement Button
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@ -7791,7 +7791,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!1 &1790415148045804960
GameObject:
m_ObjectHideFlags: 0
@ -8600,7 +8600,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!1 &1790415148045805003
GameObject:
m_ObjectHideFlags: 0
@ -18436,7 +18436,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 8 / 5
m_Text: 0 / 5
--- !u!114 &1790415148045805483
MonoBehaviour:
m_ObjectHideFlags: 0
@ -20027,7 +20027,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: '00 : 05'
m_Text: '00 : 00'
--- !u!114 &1790415148045805529
MonoBehaviour:
m_ObjectHideFlags: 0
@ -20345,7 +20345,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 8 / 5
m_Text: 0 / 5
--- !u!114 &1790415148045805539
MonoBehaviour:
m_ObjectHideFlags: 0
@ -23504,7 +23504,7 @@ MonoBehaviour:
TitleLbl: {fileID: 1790415148045805669}
LevelCompletdLbl: {fileID: 1790415148045805482}
AwardGoldImage: {fileID: 1790415148045804959}
TotalLevelsCompleted: 8
TotalLevelsCompleted: 0
--- !u!114 &1790415148045805638
MonoBehaviour:
m_ObjectHideFlags: 0
@ -27333,17 +27333,7 @@ MonoBehaviour:
type: 3}
hintcheckvalue: {fileID: 1051964499492098825, guid: 31cb6cbadbc791844a2c5d75437211f4,
type: 3}
modeNames:
- Easy
- Medium
- Hard
- Extreme
- Casual
- Levels Complete With Hints
- Watch 10 Ads
- Watch 20 Ads
- Pipe Rotation Count
- Levels complete wih Hints
ModeNames: []
value: 0
levelGroupButton: {fileID: 0}
--- !u!222 &4394128178362786187
@ -30350,7 +30340,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 309152.62}
m_AnchoredPosition: {x: 0, y: 310901.44}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!224 &5939020331221532339
@ -30600,7 +30590,7 @@ GameObject:
- component: {fileID: 4287527964766939205}
- component: {fileID: 6566816788212146303}
m_Layer: 5
m_Name: Panel
m_Name: Achivement Panel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@ -31185,7 +31175,7 @@ MonoBehaviour:
m_Calls:
- m_Target: {fileID: 4334628183748443340}
m_TargetAssemblyTypeName: instantiateprefab, Assembly-CSharp
m_MethodName: achivementsetFalse
m_MethodName: AchivementsetFalse
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}

@ -25,7 +25,7 @@ public class instantiateprefab : MonoBehaviour
private List<Slider> sliders = new List<Slider>();
public GamePlayManager gameplay;
public Slider sliderprefabalue, hintcheckvalue;
public string[] modeNames;
public string[] ModeNames;
public int value;
// public GameObject level;
public LevelGroupButton levelGroupButton;
@ -121,13 +121,13 @@ public class instantiateprefab : MonoBehaviour
Text modeText = child.GetComponent<Text>();
if (modeText != null)
{
if (index < modeNames.Length)
if (index < ModeNames.Length)
{
modeText.text = modeNames[index];
modeText.text = ModeNames[index];
}
else
{
modeText.text = "Extra Mode " + (index - modeNames.Length + 1);
modeText.text = "Extra Mode " + (index - ModeNames.Length + 1);
}
}
}
@ -177,11 +177,9 @@ public class instantiateprefab : MonoBehaviour
}
public void Update()
{
// Existing logic for updating sliders
SliderValueAtIndex9();
SliderValueAtIndex10();
// Check if any slider's completion matches the total level, then add 5 to that level
for (int i = 0; i < sliders.Count; i++)
{
if (levelGroups[i].CompletedLevel == levelGroups[i].TotalLevel)
@ -196,12 +194,10 @@ public class instantiateprefab : MonoBehaviour
// score. targetText.text = "" + completetargets.ToString();
// Update slider's max value to reflect the new TotalLevel
// No need to update CompletedLevel or slider value as it's already complete
// Trigger UI update on the LevelGroupButton
if (levelGroupButton != null)
{
levelGroupButton.UpdateUI();
@ -238,7 +234,7 @@ public class instantiateprefab : MonoBehaviour
}
public void maxValueset()
public void MaxValueset()
{
if (sliders.Count > 7)
{
@ -248,7 +244,7 @@ public class instantiateprefab : MonoBehaviour
}
}
public void achivementsetFalse()
public void AchivementsetFalse()
{
panel.SetActive(false);
}

@ -544,7 +544,7 @@ public void Undo()
{
if (boolcheck.hintcheck == true)
{
Debug.Log("hinti checki");
Debug.Log("hint check");
hintslider.value += 1;
valas += 1;

Loading…
Cancel
Save