Commit a2131173 authored by Michael But's avatar Michael But

Tot is mogeli di

parent b08cddbc
......@@ -2,6 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.SceneManagement;
using PlayerSpawnPointScript;
public class Life : MonoBehaviour {
......@@ -37,9 +38,9 @@ public class Life : MonoBehaviour {
public void Death(){
if (gameObject.CompareTag("Player"))
{
//PlayerSpawnPoint.psp.SetPlayerPosition();
gameObject.SetActive(false);
Heal(5);
SceneManager.LoadScene("MainLevel");
//gameObject.SetActive(false);
Heal(3);
Debug.Log("Death");
return;
......
......@@ -36,7 +36,6 @@ namespace SavePointListScript
int i = 0;
foreach (GameObject var in savePointList)
{
Debug.Log(savePointIsActiv[i]);
SavePoint temp = savePointList[i].GetComponent<SavePoint>();
temp.SetIsUsed(savePointIsActiv[i]);
i++;
......
Markdown is supported
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