// Update is called once per frame void Update() { if (life <= 0) { scriptPc.AddScore(1); Destroy(this.gameObject); } }
// Update is called once per frame void Update() { transform.Rotate(new Vector3(0f, 0f, i)); if (life <= 0) { scriptPc.AddScore(1); Destroy(padre); } }