minor changes

This commit is contained in:
Tim
2025-06-03 21:34:06 +02:00
parent 7c98e03279
commit e1d6301cd4
2 changed files with 16 additions and 115 deletions

View File

@@ -6888,8 +6888,8 @@ RectTransform:
m_GameObject: {fileID: 525196400}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 1}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_LocalScale: {x: 0.5, y: 0.5, z: 0.5}
m_ConstrainProportionsScale: 1
m_Children:
- {fileID: 576843183}
- {fileID: 465093193}
@@ -8252,8 +8252,8 @@ MonoBehaviour:
portSelector: {fileID: 6345901854251329130}
modelManager: {fileID: 1519836175}
unexplodeButton: {fileID: 444853960}
ContentUi: {fileID: 6345901854734501745}
_canvasButtons: {fileID: 525196400}
contentUi: {fileID: 6345901854734501745}
uiButtonsCanvas: {fileID: 525196400}
--- !u!1 &628967020
GameObject:
m_ObjectHideFlags: 0
@@ -28864,7 +28864,7 @@ MonoBehaviour:
_whenSelectedHovered:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 6345901854734501747}
- m_Target: {fileID: 0}
m_TargetAssemblyTypeName: UnityEngine.AudioSource, UnityEngine
m_MethodName: PlayOneShot
m_Mode: 2
@@ -28879,7 +28879,7 @@ MonoBehaviour:
_whenSelectedEmpty:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 6345901854734501747}
- m_Target: {fileID: 0}
m_TargetAssemblyTypeName: UnityEngine.AudioSource, UnityEngine
m_MethodName: PlayOneShot
m_Mode: 2
@@ -28894,7 +28894,7 @@ MonoBehaviour:
_whenUnselectedHovered:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 6345901854734501747}
- m_Target: {fileID: 0}
m_TargetAssemblyTypeName: UnityEngine.AudioSource, UnityEngine
m_MethodName: PlayOneShot
m_Mode: 2
@@ -28920,7 +28920,6 @@ GameObject:
- component: {fileID: 6345901854734501750}
- component: {fileID: 6345901854734501749}
- component: {fileID: 6345901854734501744}
- component: {fileID: 6345901854734501747}
m_Layer: 0
m_Name: ChildModelSelectorMenu
m_TagString: Untagged
@@ -28928,103 +28927,6 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!82 &6345901854734501747
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6345901854734501745}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_Resource: {fileID: 0}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!114 &6345901854734501749
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -29050,7 +28952,7 @@ Transform:
m_GameObject: {fileID: 6345901854734501745}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0.28739327, z: -0, w: 0.9578127}
m_LocalPosition: {x: -0.279, y: 1.797, z: 0.645}
m_LocalPosition: {x: -1, y: 2.3, z: 0.645}
m_LocalScale: {x: 2, y: 2, z: 1}
m_ConstrainProportionsScale: 0
m_Children:

View File

@@ -12,14 +12,13 @@ public class BaseModelSelector : MonoBehaviour
public ModelManager modelManager;
public GameObject unexplodeButton;
public GameObject ContentUi;
public GameObject _canvasButtons;
public GameObject contentUi;
public GameObject uiButtonsCanvas;
void Start()
{
buttonPrefab.SetActive(false);
_canvasButtons.SetActive(false);
uiButtonsCanvas.SetActive(false);
CreateModelButtons();
}
@@ -58,12 +57,12 @@ public class BaseModelSelector : MonoBehaviour
}
portSelector.GenerateButtons();
if (_canvasButtons == null)
if (uiButtonsCanvas == null)
{
Debug.LogError("CanvasButtonis null!");
Debug.LogError("CanvasButton is null!");
return;
}
_canvasButtons.SetActive(true);
uiButtonsCanvas.SetActive(true);
if (canvas == null)
{
@@ -72,12 +71,12 @@ public class BaseModelSelector : MonoBehaviour
}
gameObject.SetActive(false);
if (ContentUi == null)
if (contentUi == null)
{
Debug.LogError("ContentUi is null!");
return;
}
ContentUi.SetActive(true);
contentUi.SetActive(true);
if (unexplodeButton == null)
{