コード例 #1
0
 public void SetFungusParameter(Flowchart flowchart) //Setta uma variavel do flowchart chamada currentDrag como o received slot para utiliza-lo em alguma coisa em algum bloco
 {
     if (receivedSlot != null)
     {
         flowchart.SetGameObjectVariable("currentDrag", this.receivedSlot);
     }
 }
コード例 #2
0
        public void InteractionFunction()
        {
            transform.LookAt(protagonist);
            flo.SetGameObjectVariable("GO", gameObject);
            ableToMove = false;
            TimeSystem.Instance.timePaused          = true;
            InteractionSystem.Instance.ableToAction = false;
            PlayerMovement.Instance.ableToMove      = false;
            PauseMenu.Instance.ableToPause          = false;

            flo.ExecuteBlock(dialogueBox);
        }
コード例 #3
0
    public void SetFungusParameter(Flowchart flowchart)
    {
        switch (buttonType)
        {
        case ButtonType.RightButton:

            if (flowchart.HasExecutingBlocks())
            {
                flowchart.SetGameObjectVariable("rightButton", this.gameObject);
            }
            else
            {
                flowchart.SetGameObjectVariable("rightButton", this.gameObject);
                flowchart.ExecuteBlock("Right Button");
            }

            break;

        case ButtonType.WrongButton:
            flowchart.SetGameObjectVariable("wrongButton", this.gameObject);
            flowchart.ExecuteBlock("Wrong Button");
            break;
        }
    }
コード例 #4
0
    public void Tutorial()
    {
        tutorialPlay = PlayerPrefs.GetInt("FirstPlay") == 0;
        try
        {
            flow.SetBooleanVariable("Multiplayer", MultiplayerManagement.multiplayer);
            flow.SetGameObjectVariable("Bullet", MultiplayerManagement.player1Active.bullet);
        } catch (NullReferenceException ex) {}

        if (tutorialPlay)
        {
            flow.gameObject.SetActive(true);
            flow.SendFungusMessage("Tutorial");
        }
        else
        {
            flow.gameObject.SetActive(true);
            flow.SendFungusMessage("SkipTutorial");
        }
    }
コード例 #5
0
 public void SetOpen(GameObject obj)
 {
     fadeFlowchart.SetGameObjectVariable(openVar, obj);
 }