Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        animator.enabled = true;

        sprite = GetComponent <SpriteRenderer>();

        turningBar.SetSize((float)(humanity * 0.01));
        turningTop.SetSize((float)(humanity * 0.01));
        pillCount = 30;

        Time.timeScale = 1;
        pauseObjects   = GameObject.FindGameObjectsWithTag("PauseMenu");
        showPauseMenu();
        hidePauseMenu();

        DialogueManager.Instance.hasLearnedPills  = false;
        DialogueManager.Instance.hasNotEnteredLab = true;

        CureManager.Instance.circuitIsWon      = false;
        CureManager.Instance.sliderIsWon       = false;
        CureManager.Instance.codebreakingIsWon = false;
        CureManager.Instance.mazeIsWon         = false;
        CureManager.Instance.playerHasCure     = false;

        FreezePlayer.Instance.puzzleIsOpen = false;
        saidGetCure = false;

        DialogueBox = GameObject.Find("DialogueBox").GetComponent <DialogueBehavior>();
        List        = GameObject.Find("CureList").GetComponent <ListBehavior>();

        DialogueBox.QueueDialogue(new KeyValuePair <int, string>(4, "\"Ugh . . . what happened yesterday? Where is everyone?\""));
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     pickedUp    = false;
     clickedOn   = false;
     magnifyList = GameObject.Find("ClickedList");
     magnifyList.GetComponent <Image>().enabled = false;
     DialogueBox = GameObject.Find("DialogueBox").GetComponent <DialogueBehavior>();
 }
Exemplo n.º 3
0
 void Awake()
 {
     inputState       = GetComponent <InputState>();
     walkBehavior     = GetComponent <Walk>();
     animator         = GetComponent <Animator>();
     collisionState   = GetComponent <CollisionState>();
     duckBehavior     = GetComponent <Duck>();
     dialogueBehavior = GetComponent <DialogueBehavior>();
 }
Exemplo n.º 4
0
    public void StartDialogue(string name, Sprite face, DialogueBehavior db)
    {
        animator.SetBool("isOpen", true);
        SetFace(face);
        nameText.text = name;
        this.db       = db;

        PrintDialogue(db.GetStartingDialogue());
    }
Exemplo n.º 5
0
    void Start()
    {
        slotIngredient1 = GameObject.Find("InvSlot1");
        slotIngredient2 = GameObject.Find("InvSlot2");
        slotIngredient3 = GameObject.Find("InvSlot3");
        slotIngredient4 = GameObject.Find("InvSlot4");

        DialogueBox = GameObject.Find("DialogueBox").GetComponent <DialogueBehavior>();
        //List = GameObject.Find("CureList").GetComponent<ListBehavior>();

        cureReady = false;
    }
 public void Start()
 {
     db = GetComponent <DialogueBehavior>();
 }
Exemplo n.º 7
0
 void Start()
 {
     currentOptionsIds = new Dictionary <int, int>();
     _db = GetComponent <DialogueBehavior>();
     PrintDialogue(_db.GetStartingDialogue());
 }
Exemplo n.º 8
0
 void Start()
 {
     DialogueBox = GameObject.Find("DialogueBox").GetComponent <DialogueBehavior>();
 }