Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / manager / SpecialEffectManager.cs
  1.  
  2. using Godot;
  3.  
  4. /// <summary>
  5. /// 特效管理器
  6. /// </summary>
  7. public static class SpecialEffectManager
  8. {
  9. /// <summary>
  10. /// 在场景指定位置播放一个特效
  11. /// </summary>
  12. /// <param name="path">特效SpriteFrames资源路径</param>
  13. /// <param name="pos">坐标</param>
  14. /// <param name="rotation">旋转角度</param>
  15. /// <param name="scale">缩放</param>
  16. /// <param name="zIndex">层级</param>
  17. /// <param name="speed">播放速度</param>
  18. /// <param name="loopCount">循环次数, 到达该次数特效停止播放</param>
  19. public static void Play(string path, Vector2 pos, float rotation, Vector2 scale, int zIndex, float speed = 1, int loopCount = 1)
  20. {
  21. }
  22. }