public void Open(ExitAccepWindowNeededFunction neededFunction, Interaction requestedObject, bool enOrRuLanguage) { if (!enOrRuLanguage) //Ставим язык в зависимости от настроек { questionText.text = firstQuestionText; answerYesButtonText.text = firstAnswerYesText; answerNoButtonText.text = firstAnswerNoText; } else { questionText.text = firstQuestionTextEN; answerYesButtonText.text = firstAnswerYesTextEN; answerNoButtonText.text = firstAnswerNoTextEN; } PageInfo.canUseBook = false; isActionDone = false; isSecondActionDone = false; this.neededFunction = neededFunction; this.requestedObject = requestedObject; answerNoButton.isAnswered = false; answerNoButton.isAnswered = false; secondBgAnim.SetBool(animatorConditionName, true); answerYesButtonAnim.SetBool(animatorConditionName, true); answerNoButtonAnim.SetBool(animatorConditionName, true); }
void Start() { newGameWindowActivator = FindObjectOfType <NewGameAcceptWindowActivator>(); saveSystem = FindObjectOfType <SaveSystem>(); interaction = GetComponent <Interaction>(); exitAccepWindowNeededFunction += NeededAction; }
public void Close() { neededFunction = null; requestedButton = null; secondBgAnim.SetBool(animatorConditionName, false); answerYesButtonAnim.SetBool(animatorConditionName, false); answerNoButtonAnim.SetBool(animatorConditionName, false); gameObject.SetActive(false); }
public void Open(ExitAccepWindowNeededFunction neededFunction, ButtonBase requestedButton) { isActionDone = false; this.neededFunction = neededFunction; this.requestedButton = requestedButton; answerNoButton.isAnswered = false; answerNoButton.isAnswered = false; secondBgAnim.SetBool(animatorConditionName, true); answerYesButtonAnim.SetBool(animatorConditionName, true); answerNoButtonAnim.SetBool(animatorConditionName, true); }
public void Close() { neededFunction = null; requestedObject = null; secondBgAnim.SetBool(animatorConditionName, false); answerYesButtonAnim.SetBool(animatorConditionName, false); answerNoButtonAnim.SetBool(animatorConditionName, false); questionText.text = firstQuestionText; answerNoButtonText.text = firstAnswerNoText; playerChoosedYes = false; gameObject.SetActive(false); }
public void Activate(ExitAccepWindowNeededFunction neededFunction, Interaction requestedObject) { requestedObject.isActivated = false; exitAcceptWindowControllerObject.SetActive(true); exitAcceptWindowController.Open(neededFunction, requestedObject, saveSystem.savedData.enOrRuLanguage); }
private void Start() { exitAcceptWindowActivator = FindObjectOfType <ExitAcceptWindowActivator>(); buttonBase = GetComponent <ButtonBase>(); exitAccepWindowNeededFunction += NeededAction; }
public void Activate(ExitAccepWindowNeededFunction neededFunction, ButtonBase requestedButton) { exitAcceptWindowControllerObject.SetActive(true); exitAcceptWindowController.Open(neededFunction, requestedButton); }