uChema
3 年前
当前提交
57caaba3
共有 10 个文件被更改,包括 127 次插入 和 29 次删除
-
2UOP1_Project/Assets/Prefabs/Characters/PigChef.prefab
-
4UOP1_Project/Assets/Prefabs/UI/GameplayScene/Health System/UIHealthDisplay.prefab
-
29UOP1_Project/Assets/Scripts/Characters/Damageable.cs
-
49UOP1_Project/Assets/Scripts/UI/UIHealthBarManager.cs
-
15UOP1_Project/Assets/ScriptableObjects/Events/Healthbar/DeathEvent.asset
-
8UOP1_Project/Assets/ScriptableObjects/Events/Healthbar/DeathEvent.asset.meta
-
16UOP1_Project/Assets/ScriptableObjects/StateMachine/Config/Health/PlayersHealth.asset
-
8UOP1_Project/Assets/ScriptableObjects/StateMachine/Config/Health/PlayersHealth.asset.meta
-
14UOP1_Project/Assets/Scripts/Characters/Config/HealthSO.cs
-
11UOP1_Project/Assets/Scripts/Characters/Config/HealthSO.cs.meta
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 7fafac715ff920c4383fed91a38a351e, type: 3} |
|||
m_Name: DeathEvent |
|||
m_EditorClassIdentifier: |
|||
description: |
|
|||
fileFormatVersion: 2 |
|||
guid: 0a29544909be226418bc1677ec369790 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 11400000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: c4d37316dbf36c846802c755566e127b, type: 3} |
|||
m_Name: PlayersHealth |
|||
m_EditorClassIdentifier: |
|||
_maxHealth: 0 |
|||
_currentHealth: 0 |
|
|||
fileFormatVersion: 2 |
|||
guid: 9f77d45699a310c4c893d07ae96f341a |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 11400000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
[CreateAssetMenu(fileName = "PlayersHealth", menuName = "EntityConfig/Player's Health")] |
|||
public class HealthSO : ScriptableObject |
|||
{ |
|||
[Tooltip("Initial health")] |
|||
[SerializeField] private int _maxHealth; |
|||
[Tooltip("current health")] |
|||
[SerializeField] private int _currentHealth; |
|||
|
|||
public int MaxHealth { get; set; } |
|||
public int CurrentHealth { get; set; } |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: c4d37316dbf36c846802c755566e127b |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue