SavePoge/Assets/Scripts/GameManager.cs
2023-02-01 20:09:15 +05:30

26 lines
496 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public Transform player;
public static Transform Player { get { if (instance == null) { return null; } return instance.player; } }
public static GameManager instance { get;private set; }
void Awake()
{
instance = this;
}
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}