public override void Init(MainLogic mainLogic) { passportProps.SetActive(true); passportPropsVocaraArms.SetActive(true); currentStateNo = 0; this.mainLogic = mainLogic; cs = FindObjectOfType <ComputerScreen>(); agentsController = mainLogic.GetAgentsController(); agentsController.ChangeMainAgent(9); SetCurrentPassport(agentsController.GetCurrentAgentPassport()); mainLogic.StartSpeechRecognition(); }
public void Init_RecordPlayer(MainLogic mainLogic) { passportProps.SetActive(true); passportPropsVocaraArms.SetActive(true); currentStateNo = 0; this.mainLogic = mainLogic; cs = FindObjectOfType <ComputerScreen>(); agentsController = mainLogic.GetAgentsController(); agentsController.ChangeMainAgent(9); SetCurrentPassport(agentsController.GetCurrentAgentPassport()); //passportProps.SetActive(false); //passportPropsVocaraArms.SetActive(false); }
// Start is called before the first frame update void Start() { _computerScreen = FindObjectOfType <ComputerScreen>(); _buttonOrder = new int[4] { 2, 1, 3, 4 }; _caesarCipher = ScriptableObject.CreateInstance <CaeserCipher>(); _originalText = _computerScreen.GetScreenContent(); var firstEncodedText = _caesarCipher.Encrypt(_originalText, 1); var secondEncodedText = _caesarCipher.Encrypt(firstEncodedText, 2); var thirdEncodedText = _caesarCipher.Encrypt(secondEncodedText, 3); var fourthEncodedText = _caesarCipher.Encrypt(thirdEncodedText, 4); _screenContents = new string[5] { fourthEncodedText, thirdEncodedText, secondEncodedText, firstEncodedText, _originalText }; _computerScreen.SetScreenContext(_screenContents[_index]); _lights = FindObjectsOfType <Led>(); SortLights(); }
void Start() { BuildRegisterMap(); mem = GetComponent <ComputerMemory>(); timer = GetComponent <ComputerTimerDevice>(); screen = GetComponent <ComputerScreen>(); flash = FindObjectOfType <Flash>(); Cpu.Init(); initiated = true; Cpu.SetCPUType(cpuType); Cpu.SetCpuFrequencyMhz(cpuFrequency); Cpu.Read8 += mem.Read8; Cpu.Read16 += mem.Read16; Cpu.Read32 += mem.Read32; Cpu.ReadDasm16 += mem.Read16; Cpu.ReadDasm32 += mem.Read32; Cpu.Write8 += mem.Write8; Cpu.Write16 += mem.Write16; Cpu.Write32 += mem.Write32; executionThreadStart = new ThreadStart(CpuExecutionThread); Invoke("StartEmulation", 0.1f); }
// Start is called before the first frame update void Start() { _computerScreen = FindObjectOfType <ComputerScreen>(); }