Commit 461f36ac authored by Fredrik Kappmeier's avatar Fredrik Kappmeier
Browse files

Level 0 Toxic final

parent 4e036abd
......@@ -87,7 +87,7 @@ SpriteRenderer:
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 777780895
m_SortingLayer: 4
m_SortingLayer: 5
m_SortingOrder: -1
m_Sprite: {fileID: -5994759683429452399, guid: d10f92688891c3c4a8279eecf54a4ef9,
type: 3}
......@@ -122,7 +122,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!4 &5180667629328793575
Transform:
m_ObjectHideFlags: 0
......@@ -174,7 +174,7 @@ SpriteRenderer:
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 777780895
m_SortingLayer: 4
m_SortingLayer: 5
m_SortingOrder: 0
m_Sprite: {fileID: 5943384128794877735, guid: 65467e2b34f6f344a8d4f721189ba270,
type: 3}
......
This diff is collapsed.
fileFormatVersion: 2
guid: ae6fd731cb61ef44d86f8b34e1391aa8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -18,13 +18,13 @@ public class PauseMenu : MonoBehaviour
private void Awake()
{
pauseCanvas = GameObject.FindWithTag("PauseCanvas");
deathCanvas = GameObject.FindWithTag("DeathCanvas");
eventSystem = GameObject.FindWithTag("EventSystem").GetComponent<EventSystem>();
}
private void Start()
{
if(player == null) player = GameObject.FindWithTag("Player");
deathCanvas = GameObject.FindWithTag("DeathCanvas");
pauseCanvas.SetActive(false);
deathCanvas.SetActive(false);
isPaused = false;
......@@ -89,6 +89,7 @@ public class PauseMenu : MonoBehaviour
public void DeathScreen()
{
print("ja");
deathCanvas.SetActive(true);
playerIsDead = true;
eventSystem.firstSelectedGameObject = respawnButton;
......
......@@ -12,6 +12,10 @@ public class ToxicAreaBehaviour : MonoBehaviour
{
pauseMenu = GameObject.FindWithTag("PauseMenu");
}
if (player == null)
{
player = GameObject.FindWithTag("Player");
}
}
private void OnTriggerEnter2D(Collider2D other)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment