Search Unity

Space Shooter tutorial

Discussion in 'Getting Started' started by Lolinovsky, Sep 30, 2016.

  1. Lolinovsky

    Lolinovsky

    Joined:
    Sep 30, 2016
    Posts:
    1
    hi there,
    when i was learning Space Shooter tutorial,
    the script DescroyByContact.cs
    Instantiate (explosion, gameObject.transform.position, gameObject.transform.rotation);
    if (other.gameObject.tag == "Player") {
    Instantiate (playerExplosion, other.transform.position, other.transform.rotation);
    }
    this two Instantiate didn't work.
    Debug.Log(explosion) and playerExplosion are good

    what's wrong with it?