Skip to content

Commit

Permalink
Indev 7 update
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Jan 24, 2023
1 parent a405819 commit f0b2349
Show file tree
Hide file tree
Showing 7,079 changed files with 125,646 additions and 231,149 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions .vsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Workload.ManagedGame"
]
}
538 changes: 274 additions & 264 deletions Assembly-CSharp.csproj

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions Assets/ActivatedSlotDisplay.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ActivatedSlotDisplay : MonoBehaviour
{
PlayerController playerController;
// Start is called before the first frame update
void Start()
{
playerController = GameObject.Find("Capsule").GetComponent<PlayerController>();
}

// Update is called once per frame
void Update()
{
transform.localPosition = new Vector3(-317.6f + playerController.SelectedSlot * 79.875f, 44, 0);
}
}
11 changes: 11 additions & 0 deletions Assets/ActivatedSlotDisplay.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/BlockData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,31 @@ public class BlockData : MonoBehaviour
public void DestroyBlock()
{
GameObject.Find("Register").GetComponent<AudioSource>().PlayOneShot(GameObject.Find("Register").GetComponent<Register>().audioClips[BreakSound[Random.Range(0, BreakSound.Count)]]);
Inventory inv = GameObject.Find("Capsule").GetComponent<Inventory>();
/*int i;
bool flag = false;
for (i = 0; i < 36; i++)
{
if ((inv.value[i].ItemID == -1) || (inv.value[i].ItemID == DropItem && inv.value[i].count < 64))
{
flag = true;
break;
}
}
if (flag && DropItem != -1)
{
Debug.Log(i);
if (inv.value[i].ItemID == -1)
{
inv.value[i].ItemID = DropItem;
inv.value[i].count = 1;
}
else
{
inv.value[i].count += 1;
}
}*/
inv.AddItem(new ItemStack(DropItem, 1));
Destroy(gameObject);
}
}
50 changes: 49 additions & 1 deletion Assets/BlockModel/bedrock.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 49 additions & 1 deletion Assets/BlockModel/diamond_ore.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 49 additions & 1 deletion Assets/BlockModel/dirt.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 49 additions & 1 deletion Assets/BlockModel/grass_block.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 49 additions & 1 deletion Assets/BlockModel/iron_ore.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f0b2349

Please sign in to comment.