public void UpdateDescriptionAreaText(string descriptionText, IInventoryText objectRepresented, int type) { switch (type) { case 0: activeText = objectRepresented as PuzzleText; descriptionAreaText.text = descriptionText; break; case 1: abilityDescriptionAreaText.text = descriptionText; break; } }
// Use this for initialization void Start() { camera = FindObjectOfType <Camera>(); if (puzzleText.BaseText == "") { puzzleText = null; } if (abilityReward.BaseText == "") { abilityReward = null; } if (dialogueText_Problem == "") { PuzzleSolved = 1; } else { PuzzleSolved = 0; } }