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

        Debug.Log($"{GetType().Name} status = {CurrentState}");
    }
示例#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));
 }
示例#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();
 }
示例#6
0
    // Use this for initialization
    void Start()
    {
        NarrativeEvent testEvent = JSONAssembly.RunJSONFactoryForScene(1);

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