2022-10-01 15:39:24 +02:00
|
|
|
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()
|
|
|
|
{
|
2022-10-01 19:28:26 +02:00
|
|
|
if(Gateway == null)
|
|
|
|
{
|
|
|
|
Gateway = OnMapAppearanceMethodEnum.NewGame;
|
|
|
|
}
|
2022-11-05 20:25:40 +01:00
|
|
|
//Debug.Log("Set Gateway");
|
2022-10-01 19:28:26 +02:00
|
|
|
|
2022-10-01 15:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|