void PlayDuskAtGrid(Int2 grid) { Vector3 localPos = RoomMap.GetRoomGridLocalPos(grid); Vector3 pos = BattleEnvironmentM.Local2WorldPos(localPos); pos = U3DUtil.AddZ(pos, 5f);//在建筑后面播放 pos = U3DUtil.AddX(pos, RoomGrid.m_width / 2.0f); pos = U3DUtil.AddY(pos, RoomGrid.m_heigth / 2.0f); GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "2000391", pos, m_tStart); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(1.0f); gae.AddAction(ndEffect); }