public bool RPGNarrativeSwitch() { if (!sceneChanged) { leftInk.gameObject.SetActive(false); rightInk.gameObject.SetActive(false); if (p1DetermineHonor() && p2DetermineHonor()) { LeftHonorOutcomes[0].SetActive(true); RightHonorOutcomes[0].SetActive(true); currentLeftStory = LeftHonorOutcomes[0].GetComponent <BASEInkIntegration>(); currentRightStory = RightHonorOutcomes[0].GetComponent <BASEInkIntegration>(); Debug.Log("Honorable"); } if (!p1DetermineHonor() && p2DetermineHonor()) { LeftHonorOutcomes[1].SetActive(true); RightHonorOutcomes[1].SetActive(true); currentLeftStory = LeftHonorOutcomes[1].GetComponent <BASEInkIntegration>(); currentRightStory = RightHonorOutcomes[1].GetComponent <BASEInkIntegration>(); Debug.Log("Not Honorable" + "Honorable"); } if (!p1DetermineHonor() && !p2DetermineHonor()) { LeftHonorOutcomes[2].SetActive(true); RightHonorOutcomes[2].SetActive(true); currentLeftStory = LeftHonorOutcomes[2].GetComponent <BASEInkIntegration>(); currentRightStory = RightHonorOutcomes[2].GetComponent <BASEInkIntegration>(); pizardOn = true; Debug.Log("Not Honorable"); } if (p1DetermineHonor() && !p2DetermineHonor()) { LeftHonorOutcomes[3].SetActive(true); RightHonorOutcomes[3].SetActive(true); currentLeftStory = LeftHonorOutcomes[3].GetComponent <BASEInkIntegration>(); currentRightStory = RightHonorOutcomes[3].GetComponent <BASEInkIntegration>(); Debug.Log("Not Honorable" + "Not Honorable"); } switchScene = true; Debug.Log("scene changed"); return(true); } else { Debug.Log("rpgnarrativeswitchfalse"); return(false); } }
// Start is called before the first frame update void Start() { //p1Honor = 5; RPGFightTime = false; currentLeftStory = leftInk; currentRightStory = rightInk; enemyObject = shadyGuy; sceneChanged = false; RPGfight.SetActive(false); playerRightScript = rightPlayerRPG.GetComponent <PlayerScript>(); playerLeftScript = leftPlayerRPG.GetComponent <PlayerScript>(); controlRPGButtons(false); pizardOn = false; pizardClone.gameObject.SetActive(false); shadyGuyClone.gameObject.SetActive(false); }