示例#1
0
        // 目标选择完毕
        public void hideFlag()
        {
            int size = bloodInfo.Count;

            for (int i = 0; i < size; ++i)
            {
                UI_Blood blood = bloodInfo[i];
                if (blood)
                {
                    blood.RemoveTargetFlag();
                }
            }
        }
示例#2
0
        /// <summary>
        /// 显示flag
        /// </summary>
        /// <param name="type">0表示对我方释放,1表示敌方</param>
        public void showFlag(bool type, bool isMy, X_GUID mOwner)
        {
            int size = bloodInfo.Count;

            for (int i = 0; i < size; ++i)
            {
                UI_Blood blood = null;
                if (!isMy)
                {
                    if (mOwner.GUID_value == bloodInfo[i].uid.GUID_value)
                    {
                        continue;
                    }
                    else
                    {
                        blood = bloodInfo[i];
                    }
                }
                else
                {
                    blood = bloodInfo[i];
                }

                if (blood)
                {
                    blood.RemoveTargetFlag();
                    switch (type)
                    {
                    case true:
                    {
                        if (blood && blood.isHero)
                        {
                            blood.AddTargetFlag();
                        }
                    }
                    break;

                    case false:
                    {
                        if (blood && !blood.isHero)
                        {
                            blood.AddTargetFlag();
                        }
                    }
                    break;
                    }
                }
            }
        }