示例#1
0
        private static void CreateNotifyEffect(TeamSignalType signalType, Position pos)
        {
            string signalPerform = TeamSignalManager.GetSignalPerform(signalType);

            if (signalType == TeamSignalType.Fire || signalType == TeamSignalType.Defense)
            {
                return;
            }
            if (string.IsNullOrEmpty(signalPerform))
            {
                return;
            }
            SysSkillPerformVo dataById = BaseDataMgr.instance.GetDataById <SysSkillPerformVo>(signalPerform);

            if (dataById == null)
            {
                ClientLogger.Error("cannot found SysSkillPerformVo #" + signalPerform);
            }
            else
            {
                ResourceHandle resourceHandle = MapManager.Instance.SpawnResourceHandle(dataById.effect_id, new Vector3(pos.x, pos.y, pos.z), Quaternion.identity, 0);
                if (resourceHandle != null)
                {
                    resourceHandle.DelayRelease(1.8f);
                }
                else
                {
                    ClientLogger.Error("SpawnEffect failed #" + dataById.effect_id);
                }
            }
        }