From aad3911d23ebb03195e559b0204f46fbccaa7f1d Mon Sep 17 00:00:00 2001 From: Claire Peta Date: Wed, 10 Apr 2019 21:23:11 +1000 Subject: [PATCH] EOD Wednesday: Changed portal to start grey for item collection level, colours and particle effects turned on once someone has collected enough items --- Assets/Scenes/ChickenRunTwo.unity | 510 ++++++++++++++++++--------- Assets/Scripts/PortalColourChange.cs | 45 ++- 2 files changed, 368 insertions(+), 187 deletions(-) diff --git a/Assets/Scenes/ChickenRunTwo.unity b/Assets/Scenes/ChickenRunTwo.unity index 1f3e801..c04cc4c 100644 --- a/Assets/Scenes/ChickenRunTwo.unity +++ b/Assets/Scenes/ChickenRunTwo.unity @@ -4457,177 +4457,6 @@ BoxCollider: serializedVersion: 2 m_Size: {x: 1.9999998, y: 2, z: 2.0000005} m_Center: {x: -0.000000923872, y: 0, z: 0} ---- !u!1001 &325238781 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: 1595022036237380, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_Name - value: End Portal (1) - objectReference: {fileID: 0} - - target: {fileID: 1595022036237380, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalPosition.x - value: 29 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalPosition.y - value: 2.5 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_RootOrder - value: 8 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4857846807085456, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 198402580061111426, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.r - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 198402580061111426, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.g - value: 0.43137255 - objectReference: {fileID: 0} - - target: {fileID: 198402580061111426, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.b - value: 0.14117648 - objectReference: {fileID: 0} - - target: {fileID: 198465366653790246, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.r - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 198465366653790246, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.g - value: 0.43137255 - objectReference: {fileID: 0} - - target: {fileID: 198465366653790246, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.b - value: 0.14117648 - objectReference: {fileID: 0} - - target: {fileID: 198544763765378078, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.r - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 198544763765378078, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.g - value: 0.14117648 - objectReference: {fileID: 0} - - target: {fileID: 198544763765378078, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.a - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 198544763765378078, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.b - value: 0.32156864 - objectReference: {fileID: 0} - - target: {fileID: 198674283206087780, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.minColor.r - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 198674283206087780, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.minColor.g - value: 0.14117648 - objectReference: {fileID: 0} - - target: {fileID: 198674283206087780, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.minColor.b - value: 0.32156864 - objectReference: {fileID: 0} - - target: {fileID: 198674283206087780, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.r - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 198674283206087780, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.g - value: 0.43137255 - objectReference: {fileID: 0} - - target: {fileID: 198674283206087780, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.b - value: 0.14117648 - objectReference: {fileID: 0} - - target: {fileID: 198975521984082026, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.minColor.r - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 198975521984082026, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.minColor.g - value: 0.14117646 - objectReference: {fileID: 0} - - target: {fileID: 198975521984082026, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.r - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 198975521984082026, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.g - value: 0.4308446 - objectReference: {fileID: 0} - - target: {fileID: 198975521984082026, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.maxColor.b - value: 0.14117646 - objectReference: {fileID: 0} - - target: {fileID: 198975521984082026, guid: afd6305e706fd444eaeb68953a8475e9, - type: 3} - propertyPath: InitialModule.startColor.minColor.b - value: 0.32131812 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: afd6305e706fd444eaeb68953a8475e9, type: 3} --- !u!1001 &325917923 PrefabInstance: m_ObjectHideFlags: 0 @@ -26812,6 +26641,11 @@ PrefabInstance: propertyPath: m_Name value: Scoreboard objectReference: {fileID: 0} + - target: {fileID: 6715947279418743284, guid: bfffca149e6d42947a4de37af2b35d12, + type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6715947279418743280, guid: bfffca149e6d42947a4de37af2b35d12, type: 3} propertyPath: m_LocalPosition.x @@ -29742,6 +29576,80 @@ BoxCollider: serializedVersion: 2 m_Size: {x: 1.9999998, y: 2, z: 2.0000005} m_Center: {x: -0.000000923872, y: 0, z: 0} +--- !u!1 &1280208803 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1280208804} + - component: {fileID: 1280208806} + - component: {fileID: 1280208805} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1280208804 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1280208803} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1802489698} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -25, y: -25} + m_SizeDelta: {x: 50, y: 50} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1280208805 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1280208803} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 +--- !u!222 &1280208806 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1280208803} + m_CullTransparentMesh: 0 --- !u!1001 &1281211612 PrefabInstance: m_ObjectHideFlags: 0 @@ -44582,6 +44490,106 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1798432639} m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &1802489694 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1802489698} + - component: {fileID: 1802489697} + - component: {fileID: 1802489696} + - component: {fileID: 1802489695} + m_Layer: 5 + m_Name: Collection UI + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1802489695 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1802489694} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &1802489696 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1802489694} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 +--- !u!223 &1802489697 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1802489694} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 25 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!224 &1802489698 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1802489694} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_Children: + - {fileID: 1815696161} + - {fileID: 1280208804} + m_Father: {fileID: 0} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} --- !u!1 &1804772724 GameObject: m_ObjectHideFlags: 0 @@ -44855,6 +44863,166 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1813331353} m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &1815696160 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1815696161} + - component: {fileID: 1815696163} + - component: {fileID: 1815696162} + m_Layer: 5 + m_Name: TextMeshPro Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1815696161 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1815696160} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1802489698} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 0, y: -25} + m_SizeDelta: {x: 790, y: 50} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1815696162 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1815696160} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_text: __/__ + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294967295 + m_fontColor: {r: 1, g: 1, b: 1, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_outlineColor: + serializedVersion: 2 + rgba: 4278190080 + m_fontSize: 36 + m_fontSizeBase: 36 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_textAlignment: 260 + m_isAlignmentEnumConverted: 1 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_firstOverflowCharacterIndex: -1 + m_linkedTextComponent: {fileID: 0} + m_isLinkedTextComponent: 0 + m_isTextTruncated: 0 + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_ignoreRectMaskCulling: 0 + m_ignoreCulling: 1 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_firstVisibleCharacter: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_textInfo: + textComponent: {fileID: 1815696162} + characterCount: 5 + spriteCount: 0 + spaceCount: 0 + wordCount: 1 + linkCount: 0 + lineCount: 1 + pageCount: 1 + materialCount: 1 + m_havePropertiesChanged: 0 + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_spriteAnimator: {fileID: 0} + m_isInputParsingRequired: 0 + m_inputSource: 0 + m_hasFontAssetChanged: 0 + m_subTextObjects: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!222 &1815696163 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1815696160} + m_CullTransparentMesh: 0 --- !u!1001 &1821087561 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/PortalColourChange.cs b/Assets/Scripts/PortalColourChange.cs index 4086888..50ac736 100644 --- a/Assets/Scripts/PortalColourChange.cs +++ b/Assets/Scripts/PortalColourChange.cs @@ -6,14 +6,11 @@ public class PortalColourChange : MonoBehaviour { //get materials/colour from players //hard code for now - Color person1 = new Color32(255, 91, 0, 255); - Color red2 = new Color32(255, 0, 0, 255); - Color purple1 = new Color32(183, 96, 255, 255); - Color purple2 = new Color32(140, 0, 255, 255); - Color yellow1 = new Color32(252, 255, 124, 255); - Color yellow2 = new Color32(250, 255, 0, 255); - Color green1 = new Color32(30, 255, 64, 255); - Color green2 = new Color32(0, 196, 29, 255); + Color deactiveGrey = new Color32(120, 120, 120, 255); + Color red = new Color32(255, 0, 0, 255); + Color purple = new Color32(183, 96, 255, 255); + Color yellow = new Color32(255, 241, 36, 255); + //load portal @@ -31,19 +28,35 @@ public class PortalColourChange : MonoBehaviour var mainRing = Ring.main; var mainSmoke = Smoke.main; + mainEdge.startColor = deactiveGrey; + mainInSpark.startColor = deactiveGrey; + InSpark.Stop(); + mainRandomSparks.startColor = deactiveGrey; + RandomSparks.Stop(); + mainRing.startColor = deactiveGrey; + mainSmoke.startColor = deactiveGrey; + Smoke.Stop(); + } + + private void start() + { + //when someone collects enough items + //InSpark.Play(); + //RandomSparks.Play(); + //Smoke.Play(); + //while not everyone has exited - mainEdge.startColor = purple1; - mainInSpark.startColor = new ParticleSystem.MinMaxGradient(purple2, purple1); - mainRandomSparks.startColor = new ParticleSystem.MinMaxGradient(purple2, purple1); - mainRing.startColor = purple1; - mainSmoke.startColor = purple2; - + //mainEdge.startColor = red; + //mainInSpark.startColor = red; + //mainRandomSparks.startColor = red; + //mainRing.startColor = red; + //mainSmoke.startColor = red; + //yield return new WaitForSeconds(5); - //loop until all players have fhit the portal + //loop until all players have hit the portal } - }