Ejemplo n.º 1
0
 public void changeBall(SelectedBall Selected)
 {
     this.GetComponent <Rigidbody>().mass        = Selected.weight;
     this.GetComponent <MeshRenderer>().material = Selected.gameObject.GetComponent <MeshRenderer>().material;
 }
Ejemplo n.º 2
0
    public AudioSource AS; //https://dova-s.jp/bgm/download13494.html

    public void change(SelectedBall selectedBall)
    {
        ball.GetComponent <Ball>().changeBall(selectedBall);
    }