// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-09-02
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
//
//
// ***********************************************************************
using UnityEngine;
namespace G
{
///
///
///
public class SkillGroundBreak : MonoBehaviour
{
private void OnEnable()
{
this.GetComponent().Play();
this.GetComponent().enabled = true;
Invoke(nameof(ColliderDisable), 0.4f);
Invoke(nameof(GameobjectDisable), 2f);
}
private void ColliderDisable()
{
this.GetComponent().enabled = false;
}
private void GameobjectDisable()
{
this.transform.position = Vector3.one * 30f;
this.GetComponent().Stop();
this.gameObject.SetActive(false);
}
}
}