// Use this for initialization void Start() { if (numVisits == 1) { activeScreen = 3; if (playedAFirst) { FrameworkCore.setContent(GameInfo.vocabularyContent); } else { FrameworkCore.setContent(GameInfo.mathContent); } } else if (numVisits == 2) { activeScreen = 7; } else { sendResults(GameInfo.gameTitle); if (playAFirst) { hitContentA(); } else { hitContentB(); } } changeScreens(); }
// Use this for initialization void Start() { FrameworkCore.setContent(test); dialogueContent = FrameworkCore.currentContent.getContent(); currentLine = 1; dialogueText.text = dialogueContent[currentLine]; problemDes.text = dialogueContent[0]; }
public void hitContentB() { sendResults("B"); playedAFirst = false; FrameworkCore.setContent(GameInfo.vocabularyContent); activeScreen = 1; changeScreens(); }
// Button functions. public void hitContentA() { sendResults("A"); playedAFirst = true; FrameworkCore.setContent(GameInfo.mathContent); activeScreen = 1; changeScreens(); }
// Use this for initialization void Start() { // Change these in ContentList to each be one of your own content objects! contentOne = GameInfo.contentOne; contentTwo = GameInfo.contentTwo; // Change this to the title of your game in ContentList. title.text = GameInfo.gameTitle; // Set as a blank before the player selects one. FrameworkCore.setContent(new NoContent()); updateDisplay(); FileManagement.init(); // Create the dump file to mark the start of the game. }
void OnTriggerEnter(Collider other) { //successWindow.SetActive(true); Debug.Log(other.gameObject.name); Debug.Log("collision happened"); if (this.gameObject.name == "NPC1") { curContent = GameInfo.ShearContent; } if (this.gameObject.name == "NPC2") { curContent = GameInfo.ProjectionContent; } if (this.gameObject.name == "NPC3") { curContent = GameInfo.ReflectionContent; } if (this.gameObject.name == "NPC4") { curContent = GameInfo.RotationContent; } if (this.gameObject.name == "NPC5") { curContent = GameInfo.StretchContent; } if (this.gameObject.name == "NPC31") { curContent = GameInfo.R_SContent; } if (this.gameObject.name == "NPC32") { curContent = GameInfo.Stretch_shearContent; } if (this.gameObject.name == "NPC33") { curContent = GameInfo.StretchOnLineContent; } FrameworkCore.setContent(curContent); sword.showBox(); }
void OnTriggerEnter(Collider other) { Debug.Log(other.gameObject.name); Debug.Log("collision happened"); if (this.gameObject.name == "NPC1") { curContent = GameInfo.R_SContent; } if (this.gameObject.name == "NPC2") { curContent = GameInfo.Stretch_shearContent; } if (this.gameObject.name == "NPC3") { curContent = GameInfo.StretchOnLineContent; } if (this.gameObject.name == "NPC4") { curContent = GameInfo.RotationContent; } FrameworkCore.setContent(curContent); sword.showBox(); }
public void hitContentTwo() { FrameworkCore.setContent(contentTwo); updateDisplay(); }