Skip to content
Permalink
42408e4631
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
31 lines (17 sloc) 466 Bytes
using UnityEngine;
using System.Collections;
public class Brick : MonoBehaviour {
public GameObject GameMaster;
public Score scoreScript;
void Start()
{
Score scoreScript = GameMaster.GetComponent<Score> ();
}
void OnCollisionEnter (Collision other){
//Score scoreScript = GameMaster.GetComponent<Score> ();
//scoreScript.PlayerScore++;
//Debug.Log (scoreScript.PlayerScore);
Destroy (gameObject);
//score.PlayerScore++;
}
}