예제 #1
0
 public void Activate()
 {
     anim.SetTrigger("activate");
     if (target != null)
     {
         target.ToggleActivate();
     }
     else
     {
         Debug.LogError("Cant find target id!");
     }
 }