90 lines
2.5 KiB
C#
90 lines
2.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200007D RID: 125
|
|
[Token(Token = "0x200007D")]
|
|
public class AI_GhostD_Lightning : AI_GhostD
|
|
{
|
|
// Token: 0x06000533 RID: 1331 RVA: 0x0000C988 File Offset: 0x0000AB88
|
|
[Token(Token = "0x6000533")]
|
|
[Address(RVA = "0x16AAC20", Offset = "0x16A9A20", VA = "0x1816AAC20", Slot = "40")]
|
|
protected override void InitFightingType(AI_GhostD.AIFighting Type)
|
|
{
|
|
WizardGirlManage g_WM = this.g_WM;
|
|
this.g_Fightting = Type;
|
|
if (!g_WM.GetIsDead() && Game.sceneManager.stageState != SceneManager.GameState.Script)
|
|
{
|
|
AI_GhostD.AIFighting g_Fightting = this.g_Fightting;
|
|
if (g_Fightting == AI_GhostD.AIFighting.WatchFirst)
|
|
{
|
|
int num = 0;
|
|
this.g_fTrackTime = 30f;
|
|
this.g_fWaitTime = (float)num;
|
|
return;
|
|
}
|
|
if (g_Fightting != AI_GhostD.AIFighting.WatchFirst)
|
|
{
|
|
if (g_Fightting != AI_GhostD.AIFighting.WatchFirst)
|
|
{
|
|
if (g_Fightting == AI_GhostD.AIFighting.Watch)
|
|
{
|
|
Animator g_Anim = this.g_Anim;
|
|
this.g_fWaitTime = 3.6f;
|
|
int num2 = 0;
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
g_Anim.CrossFade("LightningAttack", 0.025f, num4, (float)num3);
|
|
this.g_fMoveVal = (float)num2;
|
|
this.g_fPauseMoveTime = 3.6f;
|
|
}
|
|
return;
|
|
}
|
|
GhostDEffectPlay g_Effect = this.g_Effect;
|
|
int num5 = 0;
|
|
this.g_fWaitTime = 3f;
|
|
this.g_fAttackTips = (float)num5;
|
|
g_Effect.PlayEffectCharge();
|
|
return;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.g_Fightting = (AI_GhostD.AIFighting)((ulong)1L);
|
|
}
|
|
float num6 = UnityEngine.Random.Range(1f, 3f);
|
|
this.g_fWaitTime = num6;
|
|
this.g_fTrackTime = 15f;
|
|
}
|
|
|
|
// Token: 0x06000534 RID: 1332 RVA: 0x0000CA90 File Offset: 0x0000AC90
|
|
[Token(Token = "0x6000534")]
|
|
[Address(RVA = "0x16AAB50", Offset = "0x16A9950", VA = "0x1816AAB50", Slot = "41")]
|
|
protected override void FightShot()
|
|
{
|
|
float g_fWaitTime = this.g_fWaitTime;
|
|
int num = 0;
|
|
if (g_fWaitTime <= (float)num)
|
|
{
|
|
this.g_Effect.StopEffLightningAttack();
|
|
this.InitFightingType((AI_GhostD.AIFighting)((uint)1));
|
|
Animator g_Anim = this.g_Anim;
|
|
int num2 = 0;
|
|
g_Anim.CrossFade("LightningAttack_End", 0.025f, num2, (float)num);
|
|
return;
|
|
}
|
|
this.g_fWaitTime = g_fWaitTime;
|
|
}
|
|
|
|
// Token: 0x06000535 RID: 1333 RVA: 0x0000CAE8 File Offset: 0x0000ACE8
|
|
[Token(Token = "0x6000535")]
|
|
[Address(RVA = "0x16AAE20", Offset = "0x16A9C20", VA = "0x1816AAE20")]
|
|
public AI_GhostD_Lightning()
|
|
{
|
|
this.g_fAttackRadius = 5f;
|
|
this.g_fMoveVal = 1f;
|
|
this.g_Fightting = (AI_GhostD.AIFighting)((ulong)1L);
|
|
base..ctor();
|
|
}
|
|
}
|