You need to sign in or sign up before continuing.
Newer
Older
Marco Zimmer
committed
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static StageStatic;
public class StageBehaviour : MonoBehaviour
{
void Awake()
{
StageStatic.LoadInitStage(true, gameObject);
}
private void OnDestroy()
{
StageStatic.devel = false;
}
public void SetDevel(bool devel)
{
StageStatic.devel = devel;
gameObject.UpdateTagActive("DevelopingMode", devel);
}
public void SetMode(bool create)
{
SetMode(create ? Mode.Create : Mode.Play);
}
public void SetMode(Mode mode, GameObject obj = null)
{
obj ??= gameObject;
StageStatic.SetMode(mode, obj);
}
}