Files
taptap2024_GJ_chidouren/Assets/Scripts/Game/Component/MapContent.cs
2024-10-19 03:04:15 +08:00

28 lines
569 B
C#

using System;
using UnityEngine;
namespace Game.Component
{
public class MapContent : MonoBehaviour
{
public PlayerEntity PlayerEntity;
//玩家位置
public Vector2 PlayerPosition { private set; get; }
//全局特殊单例
public static MapContent Instance;
private void Awake ()
{
//全局特殊单例
Instance = this;
}
private void Update ()
{
this.PlayerPosition = PlayerEntity.transform.position;
}
}
}