// 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?\"")); }
// 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>(); }
void Awake() { inputState = GetComponent <InputState>(); walkBehavior = GetComponent <Walk>(); animator = GetComponent <Animator>(); collisionState = GetComponent <CollisionState>(); duckBehavior = GetComponent <Duck>(); dialogueBehavior = GetComponent <DialogueBehavior>(); }
public void StartDialogue(string name, Sprite face, DialogueBehavior db) { animator.SetBool("isOpen", true); SetFace(face); nameText.text = name; this.db = db; PrintDialogue(db.GetStartingDialogue()); }
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>(); }
void Start() { currentOptionsIds = new Dictionary <int, int>(); _db = GetComponent <DialogueBehavior>(); PrintDialogue(_db.GetStartingDialogue()); }
void Start() { DialogueBox = GameObject.Find("DialogueBox").GetComponent <DialogueBehavior>(); }