@@ -13,23 +13,23 @@ public class CreateSloth : MonoBehaviour {
1313 void Start ( ) {
1414
1515 teamA = new List < GameObject > ( ) ;
16- gunsTeamA = new List < GameObject > ( ) ;
16+ // gunsTeamA = new List<GameObject>();
1717
1818 teamB = new List < GameObject > ( ) ;
19- gunsTeamB = new List < GameObject > ( ) ;
19+ // gunsTeamB = new List<GameObject>();
2020
2121 slothTeamA = GameObject . Find ( "avatarSlothTeamA" ) ;
2222 teamA . Add ( slothTeamA ) ;
2323
24- gunSlothTeamA = GameObject . Find ( "gunSlothTeamA" ) ;
25- gunsTeamA . Add ( gunSlothTeamA ) ;
24+ // gunSlothTeamA = GameObject.Find("gunSlothTeamA");
25+ // gunsTeamA.Add(gunSlothTeamA);
2626
2727
2828 slothTeamB = GameObject . Find ( "avatarSlothTeamB" ) ;
2929 teamB . Add ( slothTeamB ) ;
3030
31- gunSlothTeamB = GameObject . Find ( "gunSlothTeamB" ) ;
32- gunsTeamB . Add ( gunSlothTeamB ) ;
31+ // gunSlothTeamB = GameObject.Find("gunSlothTeamB");
32+ // gunsTeamB.Add(gunSlothTeamB);
3333
3434
3535 CreateTeamA ( ) ;
@@ -39,26 +39,26 @@ void Start(){
3939 public void CreateTeamA ( ) {
4040 for ( int i = 0 ; i < 3 ; i ++ ) {
4141 GameObject newSlothTeamA = Instantiate ( slothTeamA ) ;
42- GameObject newGunTeamA = Instantiate ( gunSlothTeamA ) ;
42+ // GameObject newGunTeamA = Instantiate(gunSlothTeamA);
4343
4444 newSlothTeamA . transform . position = new Vector3 ( - teamA . Count - 1 , 0.5F , 0 ) ;
45- newGunTeamA . transform . position = new Vector3 ( - gunsTeamA . Count - 1 , 0.5F , 0 ) ;
45+ // newGunTeamA.transform.position = new Vector3(-gunsTeamA.Count - 1, 0.5F, 0);
4646
4747 teamA . Add ( newSlothTeamA ) ;
48- gunsTeamA . Add ( newGunTeamA ) ;
48+ // gunsTeamA.Add(newGunTeamA);
4949 }
5050 }
5151
5252 public void CreateTeamB ( ) {
5353 for ( int i = 0 ; i < 3 ; i ++ ) {
5454 GameObject newSlothTeamB = Instantiate ( slothTeamB ) ;
55- GameObject newGunTeamB = Instantiate ( gunSlothTeamB ) ;
55+ // GameObject newGunTeamB = Instantiate(gunSlothTeamB);
5656
5757 newSlothTeamB . transform . position = new Vector3 ( teamB . Count + 1 , 0.5F , 0 ) ;
58- newGunTeamB . transform . position = new Vector3 ( + gunsTeamB . Count + 1 , 0.5F , 0 ) ;
58+ // newGunTeamB.transform.position = new Vector3(+gunsTeamB.Count + 1, 0.5F, 0);
5959
6060 teamB . Add ( newSlothTeamB ) ;
61- gunsTeamB . Add ( newGunTeamB ) ;
61+ // gunsTeamB.Add(newGunTeamB);
6262 }
6363 }
6464
@@ -68,13 +68,13 @@ public void CreateSlothTeamA () {
6868 {
6969
7070 GameObject newSlothTeamA = Instantiate ( slothTeamA ) ;
71- GameObject newGunTeamA = Instantiate ( gunSlothTeamA ) ;
71+ // GameObject newGunTeamA = Instantiate(gunSlothTeamA);
7272
7373 newSlothTeamA . transform . position = new Vector3 ( - teamA . Count - 1 , 0.5F , 0 ) ;
74- newGunTeamA . transform . position = new Vector3 ( - gunsTeamA . Count - 1 , 0.5F , 0 ) ;
74+ // newGunTeamA.transform.position = new Vector3(-gunsTeamA.Count - 1, 0.5F, 0);
7575
7676 teamA . Add ( newSlothTeamA ) ;
77- gunsTeamA . Add ( newGunTeamA ) ;
77+ // gunsTeamA.Add(newGunTeamA);
7878 }
7979
8080 }
@@ -98,13 +98,13 @@ public void CreateSlothTeamB () {
9898 {
9999
100100 GameObject newSlothTeamB = Instantiate ( slothTeamB ) ;
101- GameObject newGunTeamB = Instantiate ( gunSlothTeamB ) ;
101+ // GameObject newGunTeamB = Instantiate(gunSlothTeamB);
102102
103103 newSlothTeamB . transform . position = new Vector3 ( + teamB . Count + 1 , 0.5F , 0 ) ;
104- newGunTeamB . transform . position = new Vector3 ( - gunsTeamB . Count - 1 , 0.5F , 0 ) ;
104+ // newGunTeamB.transform.position = new Vector3(-gunsTeamB.Count - 1, 0.5F, 0);
105105
106106 teamB . Add ( newSlothTeamB ) ;
107- gunsTeamB . Add ( newGunTeamB ) ;
107+ // gunsTeamB.Add(newGunTeamB);
108108
109109 }
110110
0 commit comments