예제 #1
0
 public void runCode()
 {
     alpha.GetComponent <Alpha>().currentStack = new List <Action>();
     for (int i = 0; i < 6; i++)
     {
         alpha.GetComponent <Alpha>().currentStack.AddRange(ActionProcessor.processFunction(currentHand[i], 2f / 6));
     }
     alpha.GetComponent <Alpha>().processing = true;
     if (currentDeck.Count == 0)
     {
         currentDeck = new List <FunctionBullet>(inventory);
     }
     for (int i = 0; i < 6; i++)
     {
         int randomCard = (int)UnityEngine.Random.Range(0, currentDeck.Count);
         currentHand[i] = currentDeck[randomCard];
         currentDeck.RemoveAt(randomCard);
     }
 }