mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 05:27:13 +08:00
20 lines
557 B
C#
20 lines
557 B
C#
using UnityEngine;
|
|
|
|
namespace Entity
|
|
{
|
|
public class BuildingOutline : Outline
|
|
{
|
|
public BoxCollider2D boxCollider;
|
|
override public void Init()
|
|
{
|
|
var size = GetSize();
|
|
outlineRenderer.size = size;
|
|
boxCollider.size = size;
|
|
if (progressBarPrefab)
|
|
{
|
|
progressBarPrefab.transform.localPosition += new Vector3(0f, size.y * 2 / 3, 0f);
|
|
progressBarPrefab.transform.localScale = new Vector3(size.x, 1f / 10f, 1);
|
|
}
|
|
}
|
|
}
|
|
} |