mirror of
https://github.com/ConjureETS/GameOff2024.git
synced 2026-03-23 20:50:57 +00:00
Save
This commit is contained in:
parent
10ed6cb2ea
commit
8f1bc0fa57
3
Assets/Scripts/Basic.meta
Normal file
3
Assets/Scripts/Basic.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 799293e920c24f42b0ded460fcdd845e
|
||||||
|
timeCreated: 1731086558
|
||||||
15
Assets/Scripts/Basic/ClearStatic.cs
Normal file
15
Assets/Scripts/Basic/ClearStatic.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using GameOff.Core;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GameOff.Basic
|
||||||
|
{
|
||||||
|
[DefaultExecutionOrder(-200)]
|
||||||
|
public class ClearStatic: MonoBehaviour
|
||||||
|
{
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
PlayerMain.ClearStaticVariables();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3
Assets/Scripts/Basic/ClearStatic.cs.meta
Normal file
3
Assets/Scripts/Basic/ClearStatic.cs.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e4f03d0416944ce7b510499a9d57eff1
|
||||||
|
timeCreated: 1731086571
|
||||||
@ -7,7 +7,11 @@ namespace GameOff.Core
|
|||||||
public class PlayerMain : MonoBehaviour
|
public class PlayerMain : MonoBehaviour
|
||||||
{
|
{
|
||||||
public static PlayerMain Instance { get; private set; }
|
public static PlayerMain Instance { get; private set; }
|
||||||
|
public static void ClearStaticVariables()
|
||||||
|
{
|
||||||
|
Instance = null;
|
||||||
|
}
|
||||||
|
|
||||||
public event EventHandler<bool> OnStateUpdate;
|
public event EventHandler<bool> OnStateUpdate;
|
||||||
|
|
||||||
private PlayerInputHandler _inputHandler;
|
private PlayerInputHandler _inputHandler;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user