public static void ShowForIDIfNeeded(ETutorialId id) { if (PlayerPrefs.GetInt(id.ToString()) <= 0) { DialogueDisplayer.ShowDialogue(DialogueStorage.GetDialogueByID(_tutorials[id])); PlayerPrefs.SetInt(id.ToString(), 2); } }
void Start() { //Set bars to half curHunger = 75f; curKarma = 50f; hungerBar.SetMaxHunger(maxHunger); if (karmaBar != null) { karmaBar.SetMaxHunger(maxKarma); } ds = gameObject.GetComponent <DialogueStorage>(); lifem = FindObjectOfType <LifeManager>(); scoreMan = FindObjectOfType <ScoreManager>(); PlayerPrefs.SetString("curLevel", SceneManager.GetActiveScene().name); currentLevel = PlayerPrefs.GetString("curLevel"); PlayerPrefs.SetInt("playerCurScore", 0); pow = gameObject.GetComponent <PowerUp>(); }
void Start() { table = new DialogueStorage(); }
void Start() { dialogueBox.SetActive(false); ds = GameObject.Find("Player").GetComponent <DialogueStorage>(); }
private void Start() { Storage = GetComponent <DialogueStorage>(); }
void Awake() { variableStorage = GameObject.FindObjectOfType <DialogueStorage>(); filename = Path.Combine(Application.streamingAssetsPath, DIALOGUE_FILE); }