Ejemplo n.º 1
0
    void ResetPlayer(GameObject player)
    {
        player.transform.position = new Vector3(0f, 2f, 0f);
        //player.transform.localScale = Vector3.one;
        Explode ballSpec = player.GetComponent <Explode> ();

        ballSpec.Reset();
        Rigidbody rig = player.GetComponent <Rigidbody> ();

        rig.velocity = Vector3.zero;
    }