This commit is contained in:
2024-10-16 00:03:41 +08:00
commit 897058435c
5033 changed files with 1009728 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
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;
}
}
}