BasicFantasy/Assets/Scripts/Block/BlockBase.cs

18 lines
410 B
C#
Raw Normal View History

2023-09-28 18:21:45 +09:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BlockBase : MonoBehaviour
{
[SerializeField] protected Image _backgroundImg;
public int CurrentX { get; protected set; }
public int CurrentY { get; protected set; }
public virtual void SetSize(Vector2 size)
{
GetComponent<RectTransform>().sizeDelta = size;
}
}