23 lines
514 B
C#
23 lines
514 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()
|
||
|
{
|
||
|
Gateway = OnMapAppearanceMethodEnum.NewGame;
|
||
|
}
|
||
|
|
||
|
}
|