示例#1
0
 //To set the actual sprite on the player obj
 public void SetHandItemSprite(ItemAttributes att, EquipSlot hand)
 {
     if (hand == EquipSlot.leftHand)
     {
         SetReference((int)hand, att.NetworkInHandRefLeft());
     }
     else
     {
         SetReference((int)hand, att.NetworkInHandRefRight());
     }
 }
示例#2
0
        //To set the actual sprite on the player obj
        public void SetHandItemSprite(string slotName, ItemAttributes att)
        {
            Epos enumA = (Epos)Enum.Parse(typeof(Epos), slotName);

            if (slotName == "leftHand")
            {
                syncEquipSprites[(int)enumA] = att.NetworkInHandRefLeft();
            }
            else
            {
                syncEquipSprites[(int)enumA] = att.NetworkInHandRefRight();
            }
        }
示例#3
0
    //To set the actual sprite on the player obj
    public void SetHandItemSprite(ItemAttributes att, string hand)
    {
        Epos enumA = (Epos)Enum.Parse(typeof(Epos), hand);

        if (hand == "leftHand")
        {
            syncEquipSprites[(int)enumA] = att.NetworkInHandRefLeft();
        }
        else
        {
            syncEquipSprites[(int)enumA] = att.NetworkInHandRefRight();
        }
    }
示例#4
0
    //To set the actual sprite on the player obj
    public void SetHandItemSprite(ItemAttributes att)
    {
        Epos enumA = (Epos)Enum.Parse(typeof(Epos), playerNetworkActions.activeHand);

        if (playerNetworkActions.activeHand == "leftHand")
        {
            syncEquipSprites[(int)enumA] = att.NetworkInHandRefLeft();
        }
        else
        {
            syncEquipSprites[(int)enumA] = att.NetworkInHandRefRight();
        }
    }
示例#5
0
    //To set the actual sprite on the player obj
    public void SetHandItemSprite(ItemAttributes att, string hand)
    {
        EquipSlot enumA = (EquipSlot)Enum.Parse(typeof(EquipSlot), hand);

        if (hand == "leftHand")
        {
            SetReference((int)enumA, att.NetworkInHandRefLeft());
        }
        else
        {
            SetReference((int)enumA, att.NetworkInHandRefRight());
        }
    }