Browse Source

Restored Broken Artifact

master
Imeguras 1 week ago
parent
commit
a7c3dea04a
Signed by: Imeguras
GPG Key ID: 54D1636718EBAD48
  1. 8
      Assembly-CSharp.csproj
  2. 2
      Assets/GameBoard.cs
  3. BIN
      Assets/Gameboard/Enviroment/Resources/arvore.fbx
  4. BIN
      Assets/Gameboard/Enviroment/Resources/rocks.fbx
  5. BIN
      Assets/Gameboard/Enviroment/Terrain/Resources/1652130870354.jpg
  6. BIN
      Assets/Gameboard/Enviroment/Terrain/Resources/1652130870358.jpg
  7. BIN
      Assets/Gameboard/Enviroment/Terrain/Resources/1652130870363.jpg
  8. BIN
      Assets/Gameboard/Enviroment/Terrain/Resources/bark.png
  9. BIN
      Assets/Gameboard/Enviroment/Terrain/Resources/bark_normal.png
  10. 3
      Assets/Playables/Player.cs
  11. 27
      Assets/Playables/Resources_Tab.cs
  12. 10
      Assets/Scenes/SampleScene.unity

8
Assembly-CSharp.csproj

@ -48,11 +48,11 @@ @@ -48,11 +48,11 @@
<Compile Include="Assets/Gameboard/Enviroment/Terrain/TerrainGeneral.cs" />
<Compile Include="Assets/GameBoard.cs" />
<Compile Include="Assets/Gameboard/Enviroment/Ocean/OceanGeneral.cs" />
<Compile Include="Assets/Playables/Resources_Tab.cs" />
<Compile Include="Assets/Gameboard/Buildings/Building_Abstract.cs" />
<Compile Include="Assets/Gameboard/Enviroment/DayNightCycle.cs" />
<Compile Include="Assets/Gameboard/Enviroment/Terrain/PerlinNoise.cs" />
<Compile Include="Assets/Playables/Player.cs" />
<Compile Include="Assets/Playables/Resources_Tab.cs" />
<Reference Include="UnityEngine">
<HintPath>/home/micron/sav/UnitorEditor2022/2022.1.0b16/Editor/Data/Managed/UnityEngine/UnityEngine.dll</HintPath>
</Reference>
@ -722,12 +722,12 @@ @@ -722,12 +722,12 @@
<Reference Include="Unity.Searcher.Editor">
<HintPath>/home/micron/sav/Trabalhos/2021-2022/Kara/Kara_/Library/ScriptAssemblies/Unity.Searcher.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Core.Runtime">
<HintPath>/home/micron/sav/Trabalhos/2021-2022/Kara/Kara_/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Runtime.dll</HintPath>
</Reference>
<Reference Include="Unity.VisualScripting.SettingsProvider.Editor">
<HintPath>/home/micron/sav/Trabalhos/2021-2022/Kara/Kara_/Library/ScriptAssemblies/Unity.VisualScripting.SettingsProvider.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.RenderPipelines.Core.Runtime">
<HintPath>/home/micron/sav/Trabalhos/2021-2022/Kara/Kara_/Library/ScriptAssemblies/Unity.RenderPipelines.Core.Runtime.dll</HintPath>
</Reference>
<Reference Include="Unity.TestTools.CodeCoverage.Editor.OpenCover.Mono.Reflection">
<HintPath>/home/micron/sav/Trabalhos/2021-2022/Kara/Kara_/Library/ScriptAssemblies/Unity.TestTools.CodeCoverage.Editor.OpenCover.Mono.Reflection.dll</HintPath>
</Reference>

2
Assets/GameBoard.cs

@ -39,8 +39,8 @@ public class GameBoard : MonoBehaviour{ @@ -39,8 +39,8 @@ public class GameBoard : MonoBehaviour{
players= new List<Player>();
Player me = new Player("Imeguras", new Color32(0,0,255,255));
me.getCurCamera(ref curScreenCamera);
curScreenCamera.AddComponent<Resources_Tab>().setTrackingPlayer(me);
curScreenCamera.transform.position=new Vector3 (100, 50, 100);
curScreenCamera.transform.Rotate(new Vector3(65, 0,0));
//curScreenCamera.GetComponent<GameEyes>().terrainTrack=td;

BIN
Assets/Gameboard/Enviroment/Resources/arvore.fbx

Binary file not shown.

BIN
Assets/Gameboard/Enviroment/Resources/rocks.fbx

Binary file not shown.

BIN
Assets/Gameboard/Enviroment/Terrain/Resources/1652130870354.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 MiB

BIN
Assets/Gameboard/Enviroment/Terrain/Resources/1652130870358.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 MiB

BIN
Assets/Gameboard/Enviroment/Terrain/Resources/1652130870363.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 MiB

BIN
Assets/Gameboard/Enviroment/Terrain/Resources/bark.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 MiB

BIN
Assets/Gameboard/Enviroment/Terrain/Resources/bark_normal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 MiB

3
Assets/Playables/Player.cs

@ -128,6 +128,9 @@ namespace Kara.Playables{ @@ -128,6 +128,9 @@ namespace Kara.Playables{
}
public Resources_Tab._Resources getPlayerResources(){
return this.playerResources;
}
}

27
Assets/Playables/Resources_Tab.cs

@ -8,6 +8,33 @@ namespace Kara.Playables @@ -8,6 +8,33 @@ namespace Kara.Playables
public Player tracking;
public void setTrackingPlayer(Player track){
tracking=track;
foreach(GameObject t in GameObject.FindGameObjectsWithTag("ResourcesUI")){
updateResource(t);
}
}
public void updateResource(GameObject t){
UnityEngine.UI.Text lbl_txt= t.GetComponent<UnityEngine.UI.Text>();
_Resources playerTrackResources =tracking.getPlayerResources();
switch (t.name){
case ("Food"):
lbl_txt.text=playerTrackResources.food.ToString();
break;
case ("Wood"):
lbl_txt.text=playerTrackResources.wood.ToString();
break;
case ("Stone"):
lbl_txt.text=playerTrackResources.stone.ToString();
break;
case ("Iron"):
lbl_txt.text=playerTrackResources.iron.ToString();
break;
case ("Gold"):
lbl_txt.text=playerTrackResources.gold.ToString();
break;
default:
break;
}
}
public class _Resources{
public uint food{get; set;}

10
Assets/Scenes/SampleScene.unity

@ -203,7 +203,7 @@ GameObject: @@ -203,7 +203,7 @@ GameObject:
- component: {fileID: 332898667}
m_Layer: 5
m_Name: Wood
m_TagString: Untagged
m_TagString: ResourcesUI
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
@ -597,7 +597,7 @@ GameObject: @@ -597,7 +597,7 @@ GameObject:
- component: {fileID: 903513525}
m_Layer: 5
m_Name: Iron
m_TagString: Untagged
m_TagString: ResourcesUI
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
@ -801,7 +801,7 @@ GameObject: @@ -801,7 +801,7 @@ GameObject:
- component: {fileID: 1113930015}
m_Layer: 5
m_Name: Food
m_TagString: Untagged
m_TagString: ResourcesUI
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
@ -1223,7 +1223,7 @@ GameObject: @@ -1223,7 +1223,7 @@ GameObject:
- component: {fileID: 1913791731}
m_Layer: 5
m_Name: Stone
m_TagString: Untagged
m_TagString: ResourcesUI
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
@ -1379,7 +1379,7 @@ GameObject: @@ -1379,7 +1379,7 @@ GameObject:
- component: {fileID: 1945199244}
m_Layer: 5
m_Name: Gold
m_TagString: Untagged
m_TagString: ResourcesUI
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0

Loading…
Cancel
Save