private void SetUpObstacles () {
for (int i = 0; i < 2; i ++) {
GameObject obstacle = PhotonNetwork.Instantiate ("Obstacle", Vector3.down * OBJECT_DEFAULT_POSITION, Quaternion.identity, 0);
obstacle.GetComponent<Obstacle> ().isMyPhotonView = true;
obstacles.Add (obstacle);
obstacle.transform.parent = BoardwalkPong.transform;
obstacle.transform.localPosition = new Vector3 (0, tableLocalScale.y * 3 / 2, 0);
//Change Transition
if (i % 2 == 0) {
var animator = obstacle.GetComponent<Animator> ();
animator.SetBool ("changeTransition", true);
}
}
}