You've already forked taptap2024_GJ_chidouren
28 lines
569 B
C#
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;
|
|
}
|
|
|
|
|
|
}
|
|
} |