18 lines
397 B
C#
18 lines
397 B
C#
using UnityEngine;
|
|
|
|
public class CubeClash_ArenaManager : MonoBehaviour
|
|
{
|
|
[Header("Arena Settings")]
|
|
public Transform arenaCube;
|
|
public float shrinkRate = 0.01f; // per second
|
|
public float minSize = 2f;
|
|
|
|
void Update()
|
|
{
|
|
if (arenaCube.localScale.x > minSize)
|
|
{
|
|
arenaCube.localScale -= Vector3.one * shrinkRate * Time.deltaTime;
|
|
}
|
|
}
|
|
}
|