mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 04:07:13 +08:00
(client) feat:健康给予,路径优化,结算界面,商店界面 (#60)
Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/60
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
using Base;
|
||||
using Data;
|
||||
using Entity;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Base;
|
||||
using Data;
|
||||
using Entity;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Prefab
|
||||
@@ -15,22 +15,15 @@ namespace Prefab
|
||||
|
||||
public Vector3 Position
|
||||
{
|
||||
get
|
||||
{
|
||||
return transform.position;
|
||||
}
|
||||
set
|
||||
{
|
||||
transform.position = value;
|
||||
}
|
||||
get => transform.position;
|
||||
set => transform.position = value;
|
||||
}
|
||||
|
||||
public void Init(Data.EntityDef entityDef)
|
||||
public void Init(EntityDef entityDef)
|
||||
{
|
||||
entity.Init(entityDef);
|
||||
outline.Init();
|
||||
outline.Hide();
|
||||
|
||||
}
|
||||
|
||||
public void DefaultInit()
|
||||
@@ -41,16 +34,17 @@ namespace Prefab
|
||||
{
|
||||
var orientationDict = new Dictionary<Orientation, ITick[]>();
|
||||
foreach (Orientation orientation in Enum.GetValues(typeof(Orientation)))
|
||||
{
|
||||
orientationDict[orientation] = inf; // 所有值都指向同一个列表
|
||||
}
|
||||
}
|
||||
|
||||
outline.Init();
|
||||
outline.Hide();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"实体定义: {entity.entityDef.defName}" +
|
||||
$"实体位置: {entity.Position.x},{entity.Position.y},{entity.Position.z}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user