public void Message_fct() { SeqMultiCharacters seqMultiCharacters = TutoManager.s_instance.GetComponent <SeqMultiCharacters>(); if (feedback == null) { feedback = Instantiate(TutoManager.s_instance.uiPointer, GameManager.Instance.Ui.transform.GetChild(0)); feedback.GetComponent <FlecheQuiBouge>().PointToPoint = seqMultiCharacters.shortcutButton.transform.position; feedback.GetComponent <FlecheQuiBouge>().distanceOffset = 70.0f; feedback.GetComponent <FlecheQuiBouge>().magnitude = 100.0f; feedback.transform.localEulerAngles = new Vector3(0, 0, -120); } if (seqMultiCharacters.shortcutButton.gameObject.GetComponent <MouseClickExpected>() == null) { seqMultiCharacters.shortcutButton.gameObject.AddComponent <MouseClickExpected>(); } seqMultiCharacters.shortcutButton.transform.parent.gameObject.SetActive(true); Button[] shortcutButt = TutoManager.s_instance.shortcutButton.GetComponentsInChildren <Button>(); foreach (Button b in shortcutButt) { b.interactable = true; } TutoManager.s_instance.EcrireMessage(str); TutoManager.s_instance.PlayingSequence.CurrentState = SequenceState.WaitingForClickUI; }
public override void Reverse() { SeqMultiCharacters seqMultiCharacters = TutoManager.s_instance.GetComponent <SeqMultiCharacters>(); if (seqMultiCharacters.shortcutButton.gameObject.GetComponent <MouseClickExpected>() != null) { Destroy(seqMultiCharacters.shortcutButton.gameObject.GetComponent <MouseClickExpected>()); } Destroy(feedback); foreach (Button b in GameManager.Instance.Ui.GoActionPanelQ.GetComponentsInChildren <Button>()) { b.interactable = false; } alreadyPlayed = false; }
public void Message_fct() { SeqMultiCharacters seqMultiCharacters = TutoManager.s_instance.GetComponent <SeqMultiCharacters>(); if (feedback == null) { feedback = Instantiate(TutoManager.s_instance.uiPointer, GameManager.Instance.Ui.transform.GetChild(0)); feedback.GetComponent <FlecheQuiBouge>().PointToPoint = seqMultiCharacters.selectedKeepersPanel.transform.GetChild(0).GetChild(1).GetChild(4).position; feedback.GetComponent <FlecheQuiBouge>().distanceOffset = 60.0f; feedback.transform.localEulerAngles = new Vector3(0, 0, 0); } TutoManager.s_instance.EcrireMessage(str); TutoManager.s_instance.PlayingSequence.CurrentState = SequenceState.Idle; }