Beispiel #1
0
 void Command_ReturnControl()
 {
     Debug.Log("Control returned");
     FindObjectOfType <GameSequence>().OnSegmentDone();
     AudioManager.instance.PlaySong(null);
     NovelController.instance.gameObject.SetActive(false);
     CACHE.printCACHE();
 }
Beispiel #2
0
    void Command_SetCacheValue(string data)
    {
        //location, new value
        string[] parameters = data.Split(',');
        int      index      = int.Parse(parameters[0]);
        string   val        = parameters[1];

        val = val.Replace('_', ' ');

        CACHE.tempVals[index] = val;
        CACHE.printCACHE();
    }
Beispiel #3
0
 // Accept the current input and close the screen.
 public void Accept()
 {
     Hide();
     CACHE.tempVals[0] = inputField.text;
     CACHE.printCACHE();
 }