public void OnStart() { geneticsAccessRightLightObj = GameObject.GetGameObjectByName("GLD_RightLight"); geneticsAccessRightLight = geneticsAccessRightLightObj.RequireComponent <CLight>(); geneticsLabDoor = GameObject.GetGameObjectByName("GeneticsLabDoor"); doorScript = GetScript <DoorMain>(geneticsLabDoor); GameObject doorTerminal = GameObject.GetGameObjectByName("Terminal2Door"); doorTerminalScript = GetScript <DoorMain>(doorTerminal); boobyTrapControllerObj = GameObject.GetGameObjectByName("TSR_SeqScrambler"); boobyTrapScript = GetScript <BoobyTrapControllerScript>(boobyTrapControllerObj); GameObject triggerArea = GameObject.GetGameObjectByName("TrapTrigger"); trapAreaScript = GetScript <ConsoleSequenceInitiator>(triggerArea); //ADD SEQUENCES MANUALLY HERE List <int> redRoomTrapSeq = new List <int>(); redRoomTrapSeq.Add(43); redRoomTrapSeq.Add(82); redRoomTrapSeq.Add(13); redRoomTrapSeq.Add(35); sequence.validSequence = redRoomTrapSeq; sound = gameObject.RequireComponent <CSound>(); }
public void OnStart() { geneticsAccessRightLightObj = GameObject.GetGameObjectByName("GLD_RightLight"); geneticsAccessRightLight = geneticsAccessRightLightObj.RequireComponent<CLight>(); geneticsLabDoor = GameObject.GetGameObjectByName("GeneticsLabDoor"); doorScript = GetScript<DoorMain>(geneticsLabDoor); GameObject doorTerminal = GameObject.GetGameObjectByName("Terminal2Door"); doorTerminalScript = GetScript<DoorMain>(doorTerminal); boobyTrapControllerObj = GameObject.GetGameObjectByName("TSR_SeqScrambler"); boobyTrapScript = GetScript<BoobyTrapControllerScript>(boobyTrapControllerObj); GameObject triggerArea = GameObject.GetGameObjectByName("TrapTrigger"); trapAreaScript = GetScript<ConsoleSequenceInitiator>(triggerArea); //ADD SEQUENCES MANUALLY HERE List<int> redRoomTrapSeq = new List<int>(); redRoomTrapSeq.Add(43); redRoomTrapSeq.Add(82); redRoomTrapSeq.Add(13); redRoomTrapSeq.Add(35); sequence.validSequence = redRoomTrapSeq; sound = gameObject.RequireComponent<CSound>(); }