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); } }
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); }
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; } }
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"); } }
public void SetOpen(GameObject obj) { fadeFlowchart.SetGameObjectVariable(openVar, obj); }