26 lines
496 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|