blob: bdd3b9a8c457c55d6b0bff3c794a9bad9944ceef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
using System;
using UnityEngine;
using XUtliPoolLib;
namespace XMainClient
{
internal sealed class XBoss : XOpposer
{
public override bool Initilize(int flag)
{
base.Initilize(flag);
this._eEntity_Type |= XEntity.EnitityType.Entity_Boss;
this._layer = LayerMask.NameToLayer("BigGuy");
bool flag2 = (flag & XFastEnumIntEqualityComparer<XEntity.InitFlag>.ToInt(XEntity.InitFlag.Entity_Transform)) == 0;
if (flag2)
{
this._qte = (XSingleton<XComponentMgr>.singleton.CreateComponent(this, XQuickTimeEventComponent.uuID) as XQuickTimeEventComponent);
}
return true;
}
public override void Dying()
{
base.Dying();
}
public override void OnDestroy()
{
bool flag = XSingleton<XEntityMgr>.singleton.Boss == this;
if (flag)
{
XSingleton<XEntityMgr>.singleton.Boss = null;
}
base.OnDestroy();
}
public override void OnCreated()
{
base.OnCreated();
XSingleton<XEntityMgr>.singleton.Boss = this;
}
}
}
|