Пример #1
0
 void ThrowInForge()
 {
     if (closeEnough)
     {
         if (craftSystem.useController)
         {
             //往鍛造爐丟材料
             if (Input.GetButtonDown(craftSystem.whichPlayer + "LB"))
             {
                 if (craftSystem.CheckHandle().id == 3)
                 {
                     forge.ThrowFireIn();
                     craftSystem.ThrowOut();
                 }
                 else
                 {
                     //Debug.Log("aaaaaaaaaaaaaaaaaaaaaa" + forge.ThrowElementIn(craftSystem.CheckHandle().id));
                     if (forge.ThrowElementIn(craftSystem.CheckHandle().id))
                     {
                         craftSystem.ThrowOut();
                     }
                 }
             }
             else if (Input.GetButtonDown(craftSystem.whichPlayer + "ButtonA"))
             {
                 forge.OnForging();
             }
         }
         else
         {
             //往鍛造爐丟材料
             if (Input.GetKeyDown(KeyCode.E))
             {
                 if (craftSystem.CheckHandle().id == 3)
                 {
                     forge.ThrowFireIn();
                     craftSystem.ThrowOut();
                 }
                 else
                 {
                     if (forge.ThrowElementIn(craftSystem.CheckHandle().id))
                     {
                         craftSystem.ThrowOut();
                     }
                 }
             }
             else if (Input.GetKeyDown(KeyCode.Space))
             {
                 forge.OnForging();
             }
         }
     }
 }
Пример #2
0
    void OverGathering()
    {
        //animator.SetBool("is_gather", false);
        inFuntionTime = 0;
        K_JoyX        = 0;
        K_JoyY        = 0;
        animator.SetBool("is_gather", false);
        if (StageManager.currentStage == 7)
        {
            if (CanonScript.startFilled)
            {
                Debug.Log("craftsystem Over fillllllllllllllllllllll");
                CanonScript.OverFinlling();
                craftSystem.ThrowOut();
            }
        }

        if (Player.p2charaType)
        {
            Player.p2moveAble = true;
        }
        else
        {
            Player.p1moveAble = true;
        }
    }