2026-05-21 스킬예측(진행중)

This commit is contained in:
2026-05-21 18:14:04 +09:00
parent 04d4939e88
commit b9338b04f1
2479 changed files with 259780 additions and 20 deletions

View File

@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HS_CallBackParent : MonoBehaviour
{
[SerializeField]protected Transform parentObject;
//Particle system must have "Stop action - Callback" enabled for normal work.
protected virtual void OnParticleSystemStopped()
{
if (parentObject != null)
{
transform.parent = parentObject;
transform.localPosition = Vector3.zero;
transform.localEulerAngles = Vector3.zero;
}
else
Destroy(gameObject);
}
}