diff --git a/Space Shooter/Assets/Scenes/Game.unity b/Space Shooter/Assets/Scenes/Game.unity index 873303d..53ec4a6 100644 --- a/Space Shooter/Assets/Scenes/Game.unity +++ b/Space Shooter/Assets/Scenes/Game.unity @@ -154,6 +154,90 @@ Transform: m_Father: {fileID: 1614698418} m_RootOrder: -1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &693702525 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 693702527} + - component: {fileID: 693702526} + m_Layer: 0 + m_Name: SpaceBG_Overlay + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!212 &693702526 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 693702525} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 351f30ffb741fd643b82bde90a222699, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 19.2, y: 10.8} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &693702527 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 693702525} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0.7499995, z: 0} + m_LocalScale: {x: 1.0781703, y: 1.1388977, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1163119377 GameObject: m_ObjectHideFlags: 0 diff --git a/Space Shooter/Assets/Scripts/SpawnManager.cs b/Space Shooter/Assets/Scripts/SpawnManager.cs index d5afc32..ec6b846 100644 --- a/Space Shooter/Assets/Scripts/SpawnManager.cs +++ b/Space Shooter/Assets/Scripts/SpawnManager.cs @@ -22,7 +22,7 @@ public class SpawnManager : MonoBehaviour { Vector3 posToSpawn = new Vector3(Random.Range(-8f, 8f), 7, 0); GameObject newEnemy = Instantiate(enemyPrefab, posToSpawn, Quaternion.identity); - //newEnemy.transform.parent.SetParent(enemyContainer.transform); + newEnemy.transform.SetParent(enemyContainer.transform); yield return new WaitForSeconds(5.0f); } }