Revert "Merge pull request '리듬게임' (#5) from CatsRhythmGame into main"
This reverts commit58385bf819, reversing changes made to8369e2ab51.
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user