예제 #1
0
 void Alert()
 {
     if (alertDuration > 0f)
     {
         GameObject alert  = center.pool.Spawn(alertName, transform.position, transform.rotation);
         Linear     linear = alert.GetComponent <Linear>();
         if (linear)
         {
             linear.Play(alertDuration);
         }
     }
 }