Esempio n. 1
0
 public static void TryShowCreepSpecialEffect(string inBattleMonsterCreepId, Units inMonster)
 {
     if (inMonster == null)
     {
         return;
     }
     if (StringUtils.CheckValid(inBattleMonsterCreepId))
     {
         SysBattleMonsterCreepVo dataById      = BaseDataMgr.instance.GetDataById <SysBattleMonsterCreepVo>(inBattleMonsterCreepId);
         string fxNameByBattleMonsterCreepData = CreepHelper.GetFxNameByBattleMonsterCreepData(dataById, CreepFxType.creep_under_control);
         if (StringUtils.CheckValid(fxNameByBattleMonsterCreepData))
         {
             ActionManager.PlayEffect(fxNameByBattleMonsterCreepData, inMonster, null, null, true, string.Empty, null);
         }
     }
 }