Exemplo n.º 1
0
 static public void AddTestVar2()
 {
     StaticVar.AddVar("Role2");
     StaticVar.AddVar("Role3");
     StaticVar.AddVar("Role5");
     StaticVar.AddVar("Role1");
     StaticVar.AddVar("Role7");
     StaticVar.AddVar("Role8");
 }
Exemplo n.º 2
0
 /// <summary>
 /// 選擇到隊伍區
 /// </summary>
 public void PartySelect()
 {
     if (partyImage[0].sprite == null)
     {
         partyImage[0].sprite = partyImages[characterImageNumber];
         StaticVar.AddVar("Role" + characterImageNumber);
         confirmSelected = false;
     }
     else if (partyImage[1].sprite == null && confirmSelected)
     {
         partyImage[1].sprite = partyImages[characterImageNumber];
         StaticVar.AddVar("Role" + characterImageNumber);
         confirmSelected = false;
     }
     else if (partyImage[2].sprite == null && confirmSelected)
     {
         partyImage[2].sprite = partyImages[characterImageNumber];
         StaticVar.AddVar("Role" + characterImageNumber);
         confirmSelected = false;
     }
     else if (partyImage[3].sprite == null && confirmSelected)
     {
         partyImage[3].sprite = partyImages[characterImageNumber];
         StaticVar.AddVar("Role" + characterImageNumber);
         confirmSelected = false;
     }
     else if (partyImage[4].sprite == null && confirmSelected)
     {
         partyImage[4].sprite = partyImages[characterImageNumber];
         StaticVar.AddVar("Role" + characterImageNumber);
         confirmSelected = false;
     }
     else if (partyImage[5].sprite == null && confirmSelected)
     {
         partyImage[5].sprite = partyImages[characterImageNumber];
         StaticVar.AddVar("Role" + characterImageNumber);
         confirmSelected = false;
     }
     else if (partyImage[6].sprite == null && confirmSelected)
     {
         partyImage[6].sprite = partyImages[characterImageNumber];
         StaticVar.AddVar("Role" + characterImageNumber);
         confirmSelected = false;
     }
     else if (partyImage[7].sprite == null && confirmSelected)
     {
         partyImage[7].sprite = partyImages[characterImageNumber];
         StaticVar.AddVar("Role" + characterImageNumber);
         confirmSelected = false;
     }
 }