Exemplo n.º 1
0
 void FillingInPowder()
 {
     if (Player.p2charaType)
     {
         if (Player.p2controller && Input.GetButtonDown(whichPlayer + "LB") && !startFilled)
         {
             Debug.Log("start fiiiiiiiiiiillllllllllllllll");
             Player.p2moveAble = false;
             startFilled       = true;
             CrafterScript.Gathering();
             CraftCantFunc(true);
             CanonPowderNum++;
         }
         else if (!Player.p2controller && Input.GetKeyDown(KeyCode.E) && !startFilled)
         {
             Debug.Log("start fiiiiiiiiiiillllllllllllllll");
             Player.p2moveAble = false;
             startFilled       = true;
             CrafterScript.Gathering();
             CraftCantFunc(true);
             CanonPowderNum++;
         }
     }
     else
     {
         if (Player.p1controller && Input.GetButtonDown(whichPlayer + "LB") && !startFilled)
         {
             Debug.Log("start fiiiiiiiiiiillllllllllllllll");
             startFilled       = true;
             Player.p1moveAble = false;
             CrafterScript.Gathering();
             CraftCantFunc(true);
             CanonPowderNum++;
         }
         else if (!Player.p1controller && Input.GetKeyDown(KeyCode.E) && !startFilled)
         {
             Debug.Log("start fiiiiiiiiiiillllllllllllllll");
             Player.p1moveAble = false;
             startFilled       = true;
             CrafterScript.Gathering();
             CraftCantFunc(true);
             CanonPowderNum++;
         }
     }
 }