18 lines
410 B
C#
18 lines
410 B
C#
|
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;
|
||
|
}
|
||
|
|
||
|
}
|