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);
     }
 }
Beispiel #2
0
 public override void OnNewValue()
 {
     base.OnNewValue();
     if (Progress == 1)
     {
         EnigmeManager.getInstance().DiscoveredCharacter(potentialMoonLandings, transform, Manager.TRIGGER_INTERACTION, duration);
     }
 }
Beispiel #3
0
 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());
    }
Beispiel #5
0
 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);
     }
 }
Beispiel #6
0
    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());
    }
Beispiel #8
0
 // 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);
 }
Beispiel #9
0
 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);
     }
 }
Beispiel #10
0
 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);
     }
 }
Beispiel #11
0
    private void Awake()
    {
        nessie_out = false;
        box_opened = false;

        if (!_instance)
        {
            _instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        StartCoroutine(FireworkScrut());
    }
Beispiel #12
0
    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);
        }
    }
Beispiel #13
0
 // Start is called before the first frame update
 void Start()
 {
     instance = new EnigmeManager();
     mTrackableBehaviour.RegisterTrackableEventHandler(this);
 }
Beispiel #14
0
 public void False()
 {
     EnigmeManager.AddMalus(100);
 }