public override void MouseDown(MouseInputManager.MouseButton btn, MouseInputManager.MousePointer mouse, Interactable echo = null) { if (ouverture.open == true) { EnigmeManager.getInstance().DiscoveredCharacter(potentialMoonsLandings, transform, Manager.TRIGGER_INTERACTION, 1); } }
public override void OnNewValue() { base.OnNewValue(); if (Progress == 1) { EnigmeManager.getInstance().DiscoveredCharacter(potentialMoonLandings, transform, Manager.TRIGGER_INTERACTION, duration); } }
public void True() { all.SetActive(false); endTime = EnigmeManager.timercount; GameManager.enigme1alreadyplayed = true; GameManager.numbEnigme += 1; EnigmeManager.Finish(endTime); }
// Start is called before the first frame update void Start() { enigmeManager = GameObject.Find("EnigmeManager").GetComponent <EnigmeManager>(); initPos = transform.position; objectRb = GetComponent <Rigidbody2D>(); StartCoroutine(ShowHelper()); }
public override void MouseDown(MouseInputManager.MouseButton btn, MouseInputManager.MousePointer mouse, Interactable echo = null) { //A changer a 2 apres if ((!nessieBody || nessieBody.Ratio > 0.9f) && (!checkNessieOut || EnigmeManager.nessie_out)) { EnigmeManager.getInstance().DiscoveredCharacter(potentialMoonsLandings, transform, Manager.TRIGGER_INTERACTION, 1); } }
public static EnigmeManager getInstance() { if (!_instance) { _instance = new GameObject().AddComponent <EnigmeManager>(); } return(_instance); }
// Start is called before the first frame update void Start() { enigmeManager = GameObject.Find("EnigmeManager").GetComponent <EnigmeManager>(); objectRb = GetComponent <Rigidbody2D>(); collider = GetComponent <BoxCollider2D>(); originalSize = collider.size; StartCoroutine(ShowHelper()); }
// Start is called before the first frame update void Start() { finish.SetActive(false); instance = this; Indices.Add(Indice1); Indices.Add(Indice2); Indices.Add(Indice3); Indice1.SetActive(false); Indice2.SetActive(false); Indice3.SetActive(false); }
public void Valider() { if (Input.text == "0") { all.SetActive(false); endTime = EnigmeManager.timercount; GameManager.enigme3alreadyplayed = true; GameManager.numbEnigme += 1; EnigmeManager.Finish(endTime); } else { EnigmeManager.AddMalus(100); } }
public override void OnNewValue() { base.OnNewValue(); if (Progress == 2) { //Permet d'eviter d'etre joué par les copies if (!currentTree) { return; } currentTree.parent.GetComponent <Tree>().squirrel = null; currentTree = null; EnigmeManager.getInstance().DiscoveredCharacter(potentialMoonLandings, gameObject.transform, "Found", duration); } }
private void Awake() { nessie_out = false; box_opened = false; if (!_instance) { _instance = this; } else { Destroy(gameObject); } StartCoroutine(FireworkScrut()); }
void NextStep() { if (!done) { done = true; EnigmeManager.box_opened = true; foreach (Interactable inter in GameObject.FindObjectsOfType <Interactable>()) { EnigmeManager.getInstance().StartCountdown(); if (!(inter is Box)) { inter.Progress++; } } panelStartEte.SetActive(false); panelStartHiver.SetActive(false); } }
// Start is called before the first frame update void Start() { instance = new EnigmeManager(); mTrackableBehaviour.RegisterTrackableEventHandler(this); }
public void False() { EnigmeManager.AddMalus(100); }