添加河北衡水辛集万达广场场景
This commit is contained in:
BIN
Assets/DC/辛集万达广场.fbx
Normal file
BIN
Assets/DC/辛集万达广场.fbx
Normal file
Binary file not shown.
124
Assets/DC/辛集万达广场.fbx.meta
Normal file
124
Assets/DC/辛集万达广场.fbx.meta
Normal file
@@ -0,0 +1,124 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 470747614bfda6a4a9d9370a1f3fde41
|
||||
ModelImporter:
|
||||
serializedVersion: 22200
|
||||
internalIDToNameTable: []
|
||||
externalObjects:
|
||||
- first:
|
||||
type: UnityEngine:Material
|
||||
assembly: UnityEngine.CoreModule
|
||||
name: lambert1
|
||||
second: {fileID: 2100000, guid: a26048c7c7a4bed48ac51e7f8ead5846, type: 2}
|
||||
- first:
|
||||
type: UnityEngine:Material
|
||||
assembly: UnityEngine.CoreModule
|
||||
name: lambert2
|
||||
second: {fileID: 2100000, guid: 56d87540753f1b04498d45b3dbe3c92f, type: 2}
|
||||
- first:
|
||||
type: UnityEngine:Material
|
||||
assembly: UnityEngine.CoreModule
|
||||
name: lambert3
|
||||
second: {fileID: 2100000, guid: a26048c7c7a4bed48ac51e7f8ead5846, type: 2}
|
||||
materials:
|
||||
materialImportMode: 2
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
materialLocation: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleCurves: 1
|
||||
optimizeGameObjects: 0
|
||||
removeConstantScaleCurves: 0
|
||||
motionNodeName:
|
||||
rigImportErrors:
|
||||
rigImportWarnings:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
importAnimatedCustomProperties: 0
|
||||
importConstraints: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
extraUserProperties: []
|
||||
clipAnimations: []
|
||||
isReadable: 0
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
useSRGBMaterialColor: 1
|
||||
sortHierarchyByName: 1
|
||||
importPhysicalCameras: 1
|
||||
importVisibility: 1
|
||||
importBlendShapes: 1
|
||||
importCameras: 1
|
||||
importLights: 1
|
||||
nodeNameCollisionStrategy: 1
|
||||
fileIdsGeneration: 2
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
bakeAxisConversion: 0
|
||||
preserveHierarchy: 0
|
||||
skinWeightsMode: 0
|
||||
maxBonesPerVertex: 4
|
||||
minBoneWeight: 0.001
|
||||
optimizeBones: 1
|
||||
meshOptimizationFlags: -1
|
||||
indexFormat: 0
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVMarginMethod: 1
|
||||
secondaryUVMinLightmapResolution: 40
|
||||
secondaryUVMinObjectScale: 1
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 1
|
||||
strictVertexDataChecks: 0
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 3
|
||||
normalCalculationMode: 4
|
||||
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||
blendShapeNormalImportMode: 1
|
||||
normalSmoothingSource: 0
|
||||
referencedClips: []
|
||||
importAnimation: 1
|
||||
humanDescription:
|
||||
serializedVersion: 3
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
globalScale: 1
|
||||
rootMotionBoneName:
|
||||
hasTranslationDoF: 0
|
||||
hasExtraRoot: 0
|
||||
skeletonHasParents: 1
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
autoGenerateAvatarMappingIfUnspecified: 1
|
||||
animationType: 2
|
||||
humanoidOversampling: 1
|
||||
avatarSetup: 0
|
||||
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||
importBlendShapeDeformPercent: 1
|
||||
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
70
Assets/DC/辛集万达广场.prefab
Normal file
70
Assets/DC/辛集万达广场.prefab
Normal file
@@ -0,0 +1,70 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &3025289729295020476
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -4.6184044
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -8679921383154817045, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 919132149155446097, guid: 470747614bfda6a4a9d9370a1f3fde41,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: "\u8F9B\u96C6\u4E07\u8FBE\u5E7F\u573A"
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 470747614bfda6a4a9d9370a1f3fde41, type: 3}
|
||||
7
Assets/DC/辛集万达广场.prefab.meta
Normal file
7
Assets/DC/辛集万达广场.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e465e7f98e5b0f44da7e58df1b5bb8df
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 277371a19d99f2c49b51d0a59bd31e06
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
235941
Assets/_Alice/Scenes/Hebei_Hengshui_Xinji_WandaGuangchang.unity
Normal file
235941
Assets/_Alice/Scenes/Hebei_Hengshui_Xinji_WandaGuangchang.unity
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8259766f583edc34cbe979cc5df8327a
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e5bed6b1f00ac5418da8e43da0fa4bf
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 23800000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -373,7 +373,7 @@ public class GameManager : MonoBehaviour
|
||||
{
|
||||
wuHui.SetActive(false);
|
||||
Application.Quit();
|
||||
}, 30f);
|
||||
}, 90f);
|
||||
|
||||
}
|
||||
|
||||
@@ -382,12 +382,12 @@ public class GameManager : MonoBehaviour
|
||||
{
|
||||
//if (Input.GetKeyDown(KeyCode.Q))
|
||||
//{
|
||||
// CreateEnemy(new Vector3(0,1,5), new Vector3(0,180,0));
|
||||
// CreateEnemy(new Vector3(0, 1, 5), new Vector3(0, 180, 0));
|
||||
// enemy.SetState(3);
|
||||
// taskManager.curTaskId = 4;
|
||||
// taskManager.StartTask();
|
||||
//}
|
||||
// 更新指引箭头位置
|
||||
//更新指引箭头位置
|
||||
UpdateGuideArrowPosition();
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Enemy : MonoBehaviour
|
||||
|
||||
public void Init()
|
||||
{
|
||||
maxHp = 20;
|
||||
maxHp = 30; // 血量改为40
|
||||
timeHit = 10;
|
||||
curTimeHit = 10;
|
||||
hp = maxHp;
|
||||
@@ -52,8 +52,8 @@ public class Enemy : MonoBehaviour
|
||||
isDie = false;
|
||||
isHit = false;
|
||||
|
||||
isTimeHit = true;
|
||||
curTimeHit = timeHit; // 重置计时器
|
||||
isTimeHit = true;
|
||||
curTimeHit = timeHit; // 重置计时器
|
||||
|
||||
playerPre.SetActive(true);
|
||||
tree.RegisterEvent("DownGem",ShowBox);
|
||||
@@ -83,8 +83,6 @@ public class Enemy : MonoBehaviour
|
||||
public void SetState(int curState)
|
||||
{
|
||||
state = curState;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void ShowAllBox()
|
||||
@@ -261,18 +259,6 @@ public class Enemy : MonoBehaviour
|
||||
return;
|
||||
GameManager.Ins.CreateEggBullet(hand.position);
|
||||
},3);
|
||||
// switch (attackMode)
|
||||
// {
|
||||
// case 1:
|
||||
// Attack();
|
||||
// break;
|
||||
// case 2:
|
||||
// Attack2();
|
||||
// break;
|
||||
// case 3:
|
||||
// Attack3();
|
||||
// break;
|
||||
// }
|
||||
}
|
||||
|
||||
public void Hit()
|
||||
@@ -293,12 +279,13 @@ public class Enemy : MonoBehaviour
|
||||
if(hp <= 0)
|
||||
Die();
|
||||
}
|
||||
|
||||
private void UpdateHpUI()
|
||||
{
|
||||
// 计算整格(每格 2 血)和是否还有半格
|
||||
int fullCount = hp / 2;
|
||||
bool hasHalf = (hp % 2) == 1;
|
||||
|
||||
// 计算整格(每格4血)和是否还有余数
|
||||
int fullCount = hp / 3; // 每格4血
|
||||
int remainder = hp % 3; // 余数
|
||||
|
||||
for (int i = 0; i < hpImage.Length; i++)
|
||||
{
|
||||
if (i < fullCount)
|
||||
@@ -307,11 +294,11 @@ public class Enemy : MonoBehaviour
|
||||
hpImage[i].enabled = true;
|
||||
hpImage[i].fillAmount = 1f;
|
||||
}
|
||||
else if (i == fullCount && hasHalf)
|
||||
else if (i == fullCount && remainder > 0)
|
||||
{
|
||||
// 半格
|
||||
// 部分填充(根据余数计算填充量)
|
||||
hpImage[i].enabled = true;
|
||||
hpImage[i].fillAmount = 0.5f;
|
||||
hpImage[i].fillAmount = remainder / 3f; // 余数/4得到填充比例
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -345,4 +332,4 @@ public class Enemy : MonoBehaviour
|
||||
GameManager.Ins.StartGameEnd();
|
||||
},3f);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user