Example #1
0
 public static void ShowForIDIfNeeded(ETutorialId id)
 {
     if (PlayerPrefs.GetInt(id.ToString()) <= 0)
     {
         DialogueDisplayer.ShowDialogue(DialogueStorage.GetDialogueByID(_tutorials[id]));
         PlayerPrefs.SetInt(id.ToString(), 2);
     }
 }
Example #2
0
    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>();
    }
Example #3
0
 void Start()
 {
     table = new DialogueStorage();
 }
Example #4
0
 void Start()
 {
     dialogueBox.SetActive(false);
     ds = GameObject.Find("Player").GetComponent <DialogueStorage>();
 }
Example #5
0
 private void Start()
 {
     Storage = GetComponent <DialogueStorage>();
 }
Example #6
0
 void Awake()
 {
     variableStorage = GameObject.FindObjectOfType <DialogueStorage>();
     filename        = Path.Combine(Application.streamingAssetsPath, DIALOGUE_FILE);
 }