public class <YOUR NAME>: MonoBehaviour {
public GameObject ball;
public GameObject youWonText;
// Use this for initialization
void Start () {
youWonText.SetActive(false);
}
void OnTriggerEnter(Collider other)
{
youWonText.SetActive(true);
ball.GetComponent<ballController>().playerWon();
ball.GetComponent<Rigidbody>().isKinematic = true;
}
// Update is called once per frame
void Update () {
}
}
No comments:
Post a Comment