예제 #1
0
 public void Play(BreakCause cause, Quaternion spriteRot)
 {
     GetComponent <Animator>().SetTrigger(cause.ToString());
     sprite.transform.rotation = spriteRot;
     Destroy(gameObject, 5f);
 }
예제 #2
0
 public void Play(BreakCause cause)
 {
     GetComponent <Animator>().SetTrigger(cause.ToString());
     Destroy(gameObject, 5f);
 }