Esempio n. 1
0
 IEnumerator ExplodeRoutine(Rigidbody2D body)
 {
     yield return new WaitForSeconds(Random.Range(explodeDelay - randomDelayRange,
                 explodeDelay + randomDelayRange));
     if (body)
     {
         body.SendMessage("Explode", SendMessageOptions.DontRequireReceiver);
         body.SendMessage("DestroyRobotComponent", SendMessageOptions.DontRequireReceiver);
     }
 }