ZhuBaJie
This commit is contained in:
@@ -31,13 +31,6 @@ MonoBehaviour:
|
||||
- FishPrefab
|
||||
- HHWK
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
- m_GUID: 081b040fea8728c4c9b18a590ba3035e
|
||||
m_Address: Assets/game_download/games/game177/prefab/fish/Game177_zhubajie.prefab
|
||||
m_ReadOnly: 0
|
||||
m_SerializedLabels:
|
||||
- FishPrefab
|
||||
- HHWK
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
- m_GUID: 093a7db5504147d449199b0f7769ddaa
|
||||
m_Address: Assets/game_download/games/game177/prefab/fish/Game177_fish9.prefab
|
||||
m_ReadOnly: 0
|
||||
@@ -360,6 +353,13 @@ MonoBehaviour:
|
||||
- FishPrefab
|
||||
- HHWK
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
- m_GUID: b17489eb5ea45f943913fd10c3c6655a
|
||||
m_Address: Assets/MyGame/aa/Game/HHWK/Boss/ZhuBaJie/Game177_zhubajie.prefab
|
||||
m_ReadOnly: 0
|
||||
m_SerializedLabels:
|
||||
- FishPrefab
|
||||
- HHWK
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
- m_GUID: b34130657c2011a4783441386b7db584
|
||||
m_Address: Assets/MyGame/aa/Game/HHWK/Boss/ChangE/Game177_changE.prefab
|
||||
m_ReadOnly: 0
|
||||
|
||||
@@ -510937,7 +510937,7 @@ AnimationClip:
|
||||
m_HasMotionFloatCurves: 0
|
||||
m_Events:
|
||||
- time: 1.3333334
|
||||
functionName:
|
||||
functionName: eventHitEnd
|
||||
data:
|
||||
objectReferenceParameter: {fileID: 0}
|
||||
floatParameter: 0
|
||||
|
||||
+151
-14094
File diff suppressed because it is too large
Load Diff
@@ -24,10 +24,11 @@ public class MonsterControl_BossBase : MonsterContral
|
||||
public int prizeCount;//奖励数量
|
||||
public Action JiaFen;
|
||||
public List<List<RedPacketRecord>> redPacketRecords = new List<List<RedPacketRecord>>();
|
||||
public Camera ZhuCam;
|
||||
public override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
|
||||
ZhuCam = GameManager.Instance.ZhuCam;
|
||||
}
|
||||
public void BigPrize(int min = 2, int max = 4)
|
||||
{
|
||||
@@ -194,9 +195,10 @@ public class MonsterControl_BossBase : MonsterContral
|
||||
GameManager.Instance.StartCoroutine(yanchidie());
|
||||
|
||||
}
|
||||
public float dieTime = 3f;
|
||||
IEnumerator yanchidie()
|
||||
{
|
||||
yield return new WaitForSeconds(3f);
|
||||
yield return new WaitForSeconds(dieTime);
|
||||
tMP_CurrBossScore.transform.parent.DOMove(CreateFishManager.Instance.currGameType.currSitData.tMP_GoldNum.transform.position, 0.5f).OnComplete(() =>
|
||||
{
|
||||
|
||||
|
||||
@@ -425,14 +425,14 @@ public class CreateFishManager : MonoSingleton<CreateFishManager>
|
||||
{
|
||||
list.Add(item);
|
||||
}
|
||||
list[Random.Range(0, list.Count)].isCreate = 2;
|
||||
//foreach (var item in list)
|
||||
//{
|
||||
// if (item.fishNumber == 13028.ToString())
|
||||
// {
|
||||
// item.isCreate = 2;
|
||||
// }
|
||||
//}
|
||||
//list[Random.Range(0, list.Count)].isCreate = 2;
|
||||
foreach (var item in list)
|
||||
{
|
||||
if (item.fishNumber == 13035.ToString())
|
||||
{
|
||||
item.isCreate = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
boss = 25;
|
||||
}
|
||||
|
||||
@@ -17,22 +17,24 @@ public class GameManager : MonoSingleton<GameManager>
|
||||
public GameData gameData = new GameData();
|
||||
public Scene scene;
|
||||
public CameraShaker cameraShake;
|
||||
// // 指定此方法在加载时立即调用,在显示启动动画前之前执行
|
||||
// [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
|
||||
// private static void BeforeSplashScreen()
|
||||
// {
|
||||
// //平台适配
|
||||
//#if UNITY_WEBGL
|
||||
// // 如果在 WebGL 平台上运行,立即停止启动动画
|
||||
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
|
||||
//#else
|
||||
// // 如果不是在 WebGL 平台上,启动一个异步任务来停止启动动画
|
||||
// System.Threading.Tasks.Task.Run(() =>
|
||||
// {
|
||||
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
|
||||
// });
|
||||
//#endif
|
||||
// }
|
||||
public Camera ZhuCam;
|
||||
|
||||
// // 指定此方法在加载时立即调用,在显示启动动画前之前执行
|
||||
// [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
|
||||
// private static void BeforeSplashScreen()
|
||||
// {
|
||||
// //平台适配
|
||||
//#if UNITY_WEBGL
|
||||
// // 如果在 WebGL 平台上运行,立即停止启动动画
|
||||
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
|
||||
//#else
|
||||
// // 如果不是在 WebGL 平台上,启动一个异步任务来停止启动动画
|
||||
// System.Threading.Tasks.Task.Run(() =>
|
||||
// {
|
||||
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
|
||||
// });
|
||||
//#endif
|
||||
// }
|
||||
public void UpdataUserData(UserData user)
|
||||
{
|
||||
this.user = user;
|
||||
|
||||
@@ -63,13 +63,22 @@ MonoBehaviour:
|
||||
currState: 0
|
||||
HP: 5
|
||||
effect_Die: {fileID: 0}
|
||||
effect_DieAward: {fileID: 0}
|
||||
isMove: 1
|
||||
is3D: 0
|
||||
forwordXYZ:
|
||||
fishenum: 0
|
||||
moveTime: 0
|
||||
isyz: 0
|
||||
yzID:
|
||||
bossName: "\u767D\u9AA8\u7CBE"
|
||||
tMP_CurrBossScore: {fileID: 0}
|
||||
currBossScoreValue: 0
|
||||
bossScoreValue: 0
|
||||
poolNum: 0
|
||||
prizeCount: 0
|
||||
ZhuCam: {fileID: 0}
|
||||
dieTime: 3
|
||||
idleAnim: {fileID: 6129148253674940553}
|
||||
dieAnim: {fileID: 6970894660364473911}
|
||||
subCamera: {fileID: 4224776573722881310}
|
||||
|
||||
@@ -9,6 +9,12 @@ public class HHWK_BGJ_Boss : MonsterControl_BossBase
|
||||
public Animation idleAnim;
|
||||
public Animation dieAnim;
|
||||
public Camera subCamera;
|
||||
public override void Awake()
|
||||
{
|
||||
prizeCount=1;
|
||||
dieTime=2;
|
||||
base.Awake();
|
||||
}
|
||||
public override void DieFish(RoomKillNotice obj = null)
|
||||
{
|
||||
base.DieFish(obj);
|
||||
@@ -21,7 +27,8 @@ public class HHWK_BGJ_Boss : MonsterControl_BossBase
|
||||
{
|
||||
base.Init(pathId, Time, isyuzhen, yzID);
|
||||
transform.position = Vector3.zero;
|
||||
UniversalAdditionalCameraData mainCameraData = mainCamera.GetUniversalAdditionalCameraData();
|
||||
UniversalAdditionalCameraData mainCameraData = ZhuCam.GetUniversalAdditionalCameraData();
|
||||
//mainCameraData.renderType = CameraRenderType.Overlay;
|
||||
mainCameraData.cameraStack.Add(subCamera);
|
||||
}
|
||||
public override void OnMoveUpdata()
|
||||
|
||||
@@ -10,12 +10,11 @@ public class HHWK_TSGZ_Boss : MonsterControl_BossBase
|
||||
public Animation defaultAnim;
|
||||
public Animation skillAnim;
|
||||
public Action<string> init;
|
||||
string pathId="2";
|
||||
public override void DieFish(RoomKillNotice obj = null)
|
||||
{
|
||||
base.DieFish(obj);
|
||||
currState = CharacterStateType.idle;
|
||||
|
||||
prizeCount = 1;
|
||||
isMove = false;
|
||||
//base.DieFish(obj);
|
||||
transform.position = new Vector3(0, 0, 0);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,32 @@
|
||||
using System.Collections;
|
||||
using Assets.MyGame.Scripts.Net.WebResponses;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.Universal;
|
||||
|
||||
public class HHWK_YL_BOSS : MonsterControl_BossBase
|
||||
{
|
||||
|
||||
public Animation idleAnim;
|
||||
public Animation dieAnim;
|
||||
public override void Awake()
|
||||
{
|
||||
prizeCount = 1;
|
||||
dieTime = 8;
|
||||
base.Awake();
|
||||
}
|
||||
public override void DieFish(RoomKillNotice obj = null)
|
||||
{
|
||||
base.DieFish(obj);
|
||||
|
||||
idleAnim.transform.parent.gameObject.SetActive(false);
|
||||
dieAnim.transform.parent.gameObject.SetActive(true);
|
||||
}
|
||||
public override void Init(string pathId, float Time, bool isyuzhen = false, string yzID = "")
|
||||
{
|
||||
base.Init(pathId, Time, isyuzhen, yzID);
|
||||
transform.position = Vector3.zero;
|
||||
}
|
||||
public override void OnMoveUpdata()
|
||||
{
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b17f984710e69014c88dec990c0127af
|
||||
guid: b17489eb5ea45f943913fd10c3c6655a
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
using Assets.MyGame.Scripts.Net.WebResponses;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class HHWK_ZBJ_Boss : MonsterControl_BossBase
|
||||
{
|
||||
|
||||
public Animation defaultAnim;
|
||||
public Animation skillAnim;
|
||||
public override void DieFish(RoomKillNotice obj = null)
|
||||
{
|
||||
base.DieFish(obj);
|
||||
currState = CharacterStateType.idle;
|
||||
isMove = false;
|
||||
//base.DieFish(obj);
|
||||
transform.position = new Vector3(0, 0, 0);
|
||||
defaultAnim.transform.parent.gameObject.SetActive(false);
|
||||
skillAnim.transform.parent.gameObject.SetActive(true);
|
||||
|
||||
}
|
||||
public override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
prizeCount = 6;
|
||||
defaultAnim.transform.parent.gameObject.SetActive(true);
|
||||
skillAnim.transform.parent.gameObject.SetActive(false);
|
||||
|
||||
}
|
||||
float setMoveTime = 20;
|
||||
bool isEnd = false;
|
||||
public override void Init(string pathId, float Time, bool isyuzhen = false, string yzID = "")
|
||||
{
|
||||
base.Init(pathId, Time, isyuzhen, yzID);
|
||||
}
|
||||
public override void OnMoveUpdata()
|
||||
{
|
||||
|
||||
base.OnMoveUpdata();
|
||||
if (moveTime >= monsterData.moveLine.moveTime)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1367ea72b1fae0e418104127d3a94fbe
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -2,10 +2,15 @@
|
||||
|
||||
public class Eff_bgjDie_AniEvent : MonoBehaviour
|
||||
{
|
||||
|
||||
public void skillEnd()
|
||||
{
|
||||
Destroy(transform.parent.parent.gameObject);
|
||||
}
|
||||
public void startFly()
|
||||
{
|
||||
GetComponentInParent<HHWK_BGJ_Boss>().BigPrizeAll();
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
|
||||
@@ -9,15 +9,15 @@ public class Eff_bgj_AniEvent : MonoBehaviour
|
||||
}
|
||||
public void eventComeEnd()
|
||||
{
|
||||
GetComponent<Animation>().CrossFade("swim",0.3f);
|
||||
GetComponent<Animation>().Play("swim");
|
||||
}
|
||||
public void eventIdle1End()
|
||||
{
|
||||
GetComponent<Animation>().CrossFade("swim", 0.3f);
|
||||
GetComponent<Animation>().Play("swim");
|
||||
}
|
||||
public void eventSwimEnd()
|
||||
{
|
||||
GetComponent<Animation>().CrossFade("idle1", 0.3f);
|
||||
GetComponent<Animation>().Play("idle1");
|
||||
}
|
||||
public void eventHitEnd()
|
||||
{
|
||||
|
||||
@@ -1,8 +1,44 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
public class Eff_yilongSkill_AniEvent : MonoBehaviour
|
||||
{
|
||||
/*
|
||||
HHWK_YL_BOSS hHWK_YL_BOSS;
|
||||
private void Awake()
|
||||
{
|
||||
hHWK_YL_BOSS = GetComponentInParent<HHWK_YL_BOSS>();
|
||||
}
|
||||
public void eventStartEnd()
|
||||
{
|
||||
hHWK_YL_BOSS.dieAnim.Play("skill");
|
||||
|
||||
}
|
||||
public void eventSkillEnd()
|
||||
{
|
||||
hHWK_YL_BOSS.dieAnim.Play("fly");
|
||||
|
||||
}
|
||||
public void eventFlyEnd()
|
||||
{
|
||||
|
||||
StartCoroutine(ieYanChi());
|
||||
}
|
||||
IEnumerator ieYanChi()
|
||||
{
|
||||
yield return new WaitForSeconds(1f);
|
||||
hHWK_YL_BOSS.dieAnim.Play("fall");
|
||||
}
|
||||
public void eventFallBombTask()
|
||||
{
|
||||
//播放特效
|
||||
hHWK_YL_BOSS.BigPrizeAll();
|
||||
}
|
||||
public void eventFallEnd()
|
||||
{
|
||||
Destroy(hHWK_YL_BOSS.gameObject);
|
||||
}
|
||||
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
1. No dll files were provided to AssetRipper.
|
||||
|
||||
@@ -4,27 +4,55 @@ using UnityEngine;
|
||||
|
||||
public class Eff_zhubajie_Skill_AniEvent : MonoBehaviour
|
||||
{
|
||||
int a=0;
|
||||
void FixedUpdate()
|
||||
|
||||
HHWK_ZBJ_Boss hWK_ZBJ_Boss;
|
||||
Animation anim;
|
||||
private void Awake()
|
||||
{
|
||||
hWK_ZBJ_Boss = GetComponentInParent<HHWK_ZBJ_Boss>();
|
||||
anim = GetComponent<Animation>();
|
||||
}
|
||||
int index=0;
|
||||
public void eventComeEnd()
|
||||
{
|
||||
if (a == 57)
|
||||
{
|
||||
transform.GetComponent<Animation>().Play("skill_jump");
|
||||
}
|
||||
if (a == 130)
|
||||
{
|
||||
transform.GetComponent<Animation>().Play("skill_rush");
|
||||
}
|
||||
if (a == 105)
|
||||
{
|
||||
transform.GetComponent<Animation>().Play("skill_turn");
|
||||
}
|
||||
if (a == 130)
|
||||
{
|
||||
transform.GetComponent<Animation>().Play("skill_end");
|
||||
}
|
||||
a++;
|
||||
|
||||
anim.Play("skill_jump");
|
||||
}
|
||||
public void eventEffect1()
|
||||
{
|
||||
|
||||
index++;
|
||||
hWK_ZBJ_Boss.BigPrize();
|
||||
}
|
||||
|
||||
public void eventEffect2()
|
||||
{
|
||||
index++;
|
||||
hWK_ZBJ_Boss.BigPrize();
|
||||
}
|
||||
public void eventSkill1End()
|
||||
{
|
||||
anim.Play("skill_rush");
|
||||
|
||||
}
|
||||
public void eventSkill2End()
|
||||
{
|
||||
anim.Play("skill_turn");
|
||||
|
||||
}
|
||||
public void eventTurnEnd()
|
||||
{
|
||||
if (index==6)
|
||||
{
|
||||
anim.Play("skill_end");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
anim.Play("skill_jump");
|
||||
}
|
||||
}
|
||||
public void AniEnd()
|
||||
{
|
||||
Destroy(hWK_ZBJ_Boss.gameObject);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user