Esempio n. 1
0
        public override void PickUpInGameItem(UBZ.Item.InGameBuffType inGameBuffType)
        {
            ItemData itemData = InGameDataBase.Instance.GetInGameItemData(inGameBuffType);

            switch (itemData.target)
            {
            case ItemTarget.SELF:
                photonView.RPC("AddInGameItem", RpcTarget.AllViaServer, inGameBuffType);
                break;

            case ItemTarget.OUR_TEAM:
                foreach (MultiPlayer multiPlayer in InGameManager.Instance.GetMultiPlayersPerTeam(GetTeam()))
                {
                    if (null == multiPlayer)
                    {
                        continue;
                    }
                    Debug.Log(GetTeam() + "팀 버프 적용 " + multiPlayer.GetUser().NickName);
                    multiPlayer.ApplyTeamBuff(inGameBuffType);
                }
                break;

            case ItemTarget.OPPONENT_TEAM:
                // 현재 적팀 대상 효과 아이템 없음. 0526
                break;
            }
        }
 public virtual void PickUpInGameItem(UBZ.Item.InGameBuffType inGameBuffType)
 {
 }