Exemplo n.º 1
0
 public void BootSequence(string sceneName)
 {
     rightPanel   = GameObject.Find("RightCharacterPanel").GetComponent <DiaPanelConfig> ();
     leftPanel    = GameObject.Find("LeftCharacterPanel").GetComponent <DiaPanelConfig> ();
     currentEvent = JSONAssembly.RunJSONFactoryForScene(sceneName);
     UpdatePanelState();
 }
Exemplo n.º 2
0
    public void BootSequence()
    {
        Debug.Log($"{GetType().Name} is booting up");
        _currentEvent = JSONAssembly.RunJSONFactoryForScene(SceneBuildIndex);
        InitializePanels();

        Debug.Log($"{GetType().Name} status = {CurrentState}");
    }
Exemplo n.º 3
0
 public void BootSequence()
 {
     Debug.Log(string.Format("{0} is booting up", GetType().Name));
     rightPanel   = GameObject.Find("RightCharacterPanel").GetComponent <PanelConfig>();
     leftPanel    = GameObject.Find("LeftCharacterPanel").GetComponent <PanelConfig>();
     currentEvent = JSONAssembly.RunJSONFactoryForScene(1);
     InitializePanels();
     Debug.Log(string.Format("{0} status ={1}", GetType().Name, currentState));
 }
Exemplo n.º 4
0
 private void Update()
 {
     if (WorldVariables.initilizeDialogue)
     {
         WorldVariables.initilizeDialogue = false;
         stepIndex = 0;
         panel.SetActive(true);
         currentEvent = JSONAssembly.RunJSONFactoryForScene(WorldVariables.sceneN);
         InitializePanels();
     }
     else if (Input.GetKeyDown(KeyCode.Space) && WorldVariables.dialogueActive)
     {
         NextPanelState();
     }
 }
 public void BootSequence()
 {
     if (GameObject.Find("CharacterPanel") != null)
     {
         characterPanel = GameObject.Find("CharacterPanel").GetComponent<DialoguePanelConfig>();
     } 
     if (SceneManager.GetActiveScene().buildIndex == 1)
     {
         currentEvent = JSONAssembly.RunJSONFactoryForScene(1); 
     }
     if (SceneManager.GetActiveScene().buildIndex == 2)
     {
         currentEvent = JSONAssembly.RunJSONFactoryForScene(2);
     }
     InitiziliasePanels();
 }
Exemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        NarrativeEvent testEvent = JSONAssembly.RunJSONFactoryForScene(1);

        Debug.Log(testEvent.dialogues[0].characterType);
    }