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 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 #4
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 #5
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);
        }
    }