Subversion Repository Public Repository

Nextrek

Diff Revisions 129 vs 130 for /3DSpace/Assets/Custum/Scripts/AllyPool.cs

Diff revisions: vs.
  @@ -32,17 +32,20 @@
32 32 {
33 33 for(int i=0;i<cnt;i++)
34 34 {
35 +
36 + totalAlly++;
37 + aliveAlly = totalAlly;
38 +
35 39 GameManager.CreateAlly(allyPrefeb[type]);
36 40
37 41 nowID++;
38 42 nowAlly++;
39 - aliveAlly = totalAlly;
40 43 Debug.Log("ally "+type+" "+"tot:"+totalAlly);
41 44 }
42 45 }
43 - public void DestroyOneAlly(int id)
46 + public void DestroyOneAlly(GameObject ally)
44 47 {
45 - Debug.Log("Apply Destroy:"+id);
48 + Debug.Log("Ally Destroyed:");
46 49 aliveAlly--;
47 50 nowAlly--;
48 51 }