// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-09-02
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
//
//
// ***********************************************************************
using UnityEngine;
namespace G
{
///
/// 格档
///
public class Ef_block : MonoBehaviour
{
public float scaleSpeed = 2f;
private void Update()
{
Vector3 localScale = this.transform.localScale;
if (localScale.x < 1.4f)
{
this.transform.localScale = localScale + Vector3.one * (scaleSpeed * Time.deltaTime);
return;
}
this.gameObject.SetActive(false);
this.transform.localScale = Vector3.one;
}
}
}