Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        // Interface for components
        spriteRenderer = GetComponent <SpriteRenderer>();
        rb             = GetComponent <Rigidbody2D> ();
        animator       = GetComponent <Animator> ();

        normalBombSpriteRenderer = normalBomb.GetComponent <SpriteRenderer>();

        normalBombScript = normalBomb.GetComponent <BombItemScript> ();
        normalBombScript.Hide();

//		Physics.IgnoreCollision(ignored.GetComponent<Collider>(), GetComponent<Collider>());
    }
Beispiel #2
0
 private void UpdateBombs(float step)
 {
     for (int i = 0; i < bombs.Count; i++)
     {
         BombItemScript bomb = bombs [i];
         if (step == i)
         {
             bomb.Show();
         }
         else
         {
             bomb.Hide();
         }
     }
 }