예제 #1
0
    //Client - 유닛 애니메이션
    public void UnitState(DataPacket packet, int udpId)
    {
        UnitStatePacket unitStatePacket = new UnitStatePacket(packet.msg);
        UnitStateData   unitStateData   = unitStatePacket.GetData();

        if (unitStateData.UnitType == (byte)UnitType.Hero)
        {
            dungeonManager.CharacterState(unitStateData);
        }
        else if (unitStateData.UnitType == (byte)UnitType.Monster)
        {
            dungeonManager.MonsterState(unitStateData);
        }
    }