Skip to content
Snippets Groups Projects
Commit dbee9288 authored by PET Computação's avatar PET Computação
Browse files

arrumado o texto de ajuda

parent ca6364b9
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,9 @@ ...@@ -55,6 +55,9 @@
<Compile Include="Assets\Scripts\onda.cs" /> <Compile Include="Assets\Scripts\onda.cs" />
<Compile Include="Assets\Scripts\texture2D.cs" /> <Compile Include="Assets\Scripts\texture2D.cs" />
<None Include="Assets\Fonts\SIL Open Font License.txt" /> <None Include="Assets\Fonts\SIL Open Font License.txt" />
<Reference Include="UnityEngine.Advertisements">
<HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/Advertisements/UnityEngine.Advertisements.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI"> <Reference Include="UnityEngine.UI">
<HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll</HintPath> <HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll</HintPath>
</Reference> </Reference>
...@@ -70,6 +73,9 @@ ...@@ -70,6 +73,9 @@
<Reference Include="UnityEngine.HoloLens"> <Reference Include="UnityEngine.HoloLens">
<HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/RuntimeEditor/UnityEngine.HoloLens.dll</HintPath> <HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/RuntimeEditor/UnityEngine.HoloLens.dll</HintPath>
</Reference> </Reference>
<Reference Include="UnityEngine.Purchasing">
<HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/UnityPurchasing/UnityEngine.Purchasing.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.VR"> <Reference Include="UnityEngine.VR">
<HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/RuntimeEditor/UnityEngine.VR.dll</HintPath> <HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/UnityVR/RuntimeEditor/UnityEngine.VR.dll</HintPath>
</Reference> </Reference>
......
No preview for this file type
...@@ -4,17 +4,33 @@ using UnityEngine; ...@@ -4,17 +4,33 @@ using UnityEngine;
public class helpScript : MonoBehaviour { public class helpScript : MonoBehaviour {
private bool cont;
private UnityEngine.UI.Text textT;
private GameObject texto;
// Use this for initialization // Use this for initialization
void Start () { void Start () {
if (PlayerPrefs.GetInt("Help") == 1) if (PlayerPrefs.GetInt("Help") == 1)
{ {
gameObject.SetActive(false); gameObject.SetActive(false);
} }
cont = false;
} }
public void Continue () public void Continue ()
{
if (cont)
{ {
PlayerPrefs.SetInt("Help", 1); PlayerPrefs.SetInt("Help", 1);
gameObject.SetActive(false); gameObject.SetActive(false);
} }
else
{
texto = GameObject.Find("Help/Texto");
textT = texto.GetComponent<UnityEngine.UI.Text>();
textT.text = ("Mas para receber o meu tesouro, você terá que se provar merecedor dele e fazer o desafio corretamente. Assim, aos poucos, juntaremos de novo o nosso tesouro, quer dizer, MEU tesouro. \n\n" +
"Nesse mapa temos todas as ilhas que escondi o meu tesouro, se você clicar em uma das ilhas, você poderá jogar o desafio e se ganha-lo, receberá um pouco do meu ouro.");
cont = true;
}
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment