后处理+FEEL完全改进
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Sirenix.OdinInspector;
|
||||
using SLSFramework.General;
|
||||
using SLSFramework.WwiseAssistance;
|
||||
using SLSUtilities.FunctionalAnimation;
|
||||
using UniRx;
|
||||
@@ -220,4 +221,24 @@ namespace Cielonos.MainGame.Characters
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public partial class CharacterBase
|
||||
{
|
||||
public Vector2 GetNormalizedScreenPosition(Camera cam = null)
|
||||
{
|
||||
if (this is Player player)
|
||||
{
|
||||
cam ??= player.viewSc.playerCamera;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (cam == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(cam), "Camera must be provided for non-player characters.");
|
||||
}
|
||||
}
|
||||
|
||||
return SpaceConverter.WorldPointToNormalizedScreenPoint(flexibleCenterPoint.position, cam);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user