Scriptum/Assets/Scripts/SceneManager/OnMapAppearanceMethod.cs
KrolMel be7009c578 Health Fixed
After respawn health fixed. Also added new map.
2022-11-05 20:25:40 +01:00

28 lines
616 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum OnMapAppearanceMethodEnum
{
NewGame = 0,
LoadGame = 1,
Gateway = 2
//maybe respawn too
}
public class OnMapAppearanceMethod : MonoBehaviour
{
public static OnMapAppearanceMethodEnum Gateway { get; set; }
// every script which makes player appear somewhere should change this variable ! ! !
void Awake()
{
if(Gateway == null)
{
Gateway = OnMapAppearanceMethodEnum.NewGame;
}
//Debug.Log("Set Gateway");
}
}