mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 08:25:20 +01:00
34 lines
721 B
C#
34 lines
721 B
C#
using UnityEngine;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class EvtReviveAvatar : BaseEvent
|
|
{
|
|
public readonly uint avatarID;
|
|
|
|
public bool isRevivePosAssigned;
|
|
|
|
public Vector3 revivePosition;
|
|
|
|
public EvtReviveAvatar(uint avatarID, bool isRevivePosAssigned, Vector3 revivePositon)
|
|
: base(avatarID)
|
|
{
|
|
this.avatarID = avatarID;
|
|
this.isRevivePosAssigned = isRevivePosAssigned;
|
|
if (isRevivePosAssigned)
|
|
{
|
|
revivePosition = revivePositon;
|
|
}
|
|
else
|
|
{
|
|
revivePosition = new Vector3(0f, 0f, 0f);
|
|
}
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("revive avatar: avatarId:{0} isRevivePosAssigned:{1} revivePosition:{2}", avatarID, isRevivePosAssigned, revivePosition);
|
|
}
|
|
}
|
|
}
|