Skip to content

Commit

Permalink
Player Run Stat Saver (#184)
Browse files Browse the repository at this point in the history
* Initial setup

* Player stat saver

* Still having some problems

* Working on it

* Main into game saver (#3)

* Loading Bar Weapon Spawn

* Piercing Fix

* Item Descriptions

* Begining Items

* Fixed

* Items Creataed

* Zip Bomb

* Sniper Scope

* Dice Gun

* Items Done

* Clang Ran

* Item Descriptions

* Review cms

---------

Co-authored-by: Nathan St. John <[email protected]>

* Problem with weapon inventory

* Working!

---------

Co-authored-by: Nathan St. John <[email protected]>
  • Loading branch information
BrandonPacewic and Galaxy25 authored May 18, 2023
1 parent b8f0402 commit cfea408
Show file tree
Hide file tree
Showing 16 changed files with 711 additions and 19 deletions.
16 changes: 16 additions & 0 deletions Assets/HidePlayer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (c) TigardHighGDC
// SPDX-License SPDX-License-Identifier: Apache-2.0

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HidePlayer : MonoBehaviour
{
private void Start()
{
// Find the player game object and set it to inactive
GameObject player = GameObject.Find("Player 1");
player.SetActive(false);
}
}
11 changes: 11 additions & 0 deletions Assets/HidePlayer.cs.meta

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

6 changes: 1 addition & 5 deletions Assets/Prefabs/Player 1.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -638,11 +638,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
MaxWeapons: 4
Pickupable: {fileID: 1145120673999412928, guid: 9c1fbdfe681243d4d961caf528ea13a9, type: 3}
NewWeapons:
- {fileID: 11400000, guid: 622b6880c4f9bf84684f20474f0c599a, type: 2}
- {fileID: 11400000, guid: c3111fb56c038cf4890b61ab799989e5, type: 2}
- {fileID: 11400000, guid: 4532e38c302d7bc4cba21c24e8e4d4a8, type: 2}
- {fileID: 11400000, guid: a18bccf47773fd34c8715c1dbdb97f52, type: 2}
NewWeapons: []
--- !u!114 &1179279060
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down
54 changes: 54 additions & 0 deletions Assets/Prefabs/PlayerStats.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2471153101020959619
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2138528470364355460}
- component: {fileID: 4789057121056509013}
m_Layer: 0
m_Name: PlayerStats
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2138528470364355460
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2471153101020959619}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4789057121056509013
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2471153101020959619}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8d57b4494748e0c418bc48cb73cf28db, type: 3}
m_Name:
m_EditorClassIdentifier:
PlayerStats:
MaxHealth: 0
StartingWeapons: []
DefaultPlayerStats:
MaxHealth: 150
StartingWeapons:
- {fileID: 11400000, guid: a18bccf47773fd34c8715c1dbdb97f52, type: 2}
- {fileID: 11400000, guid: a18bccf47773fd34c8715c1dbdb97f52, type: 2}
7 changes: 7 additions & 0 deletions Assets/Prefabs/PlayerStats.prefab.meta

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

Loading

0 comments on commit cfea408

Please sign in to comment.