UF检查和停止想象接入完成
This commit is contained in:
@@ -3,6 +3,9 @@ using UnityEngine;
|
||||
using DG.Tweening;
|
||||
using Unity.Mathematics;
|
||||
using AibisDream;
|
||||
using UnityEngine.Rendering.Universal;
|
||||
using UnityEngine.Rendering;
|
||||
using AibisDream.Utility;
|
||||
|
||||
public class EyeTarget : MonoBehaviour
|
||||
{
|
||||
@@ -20,6 +23,7 @@ public class EyeTarget : MonoBehaviour
|
||||
|
||||
[SerializeField]
|
||||
private SpriteRenderer wrongColorSpriteRenderer;
|
||||
[SerializeField]private SpriteRenderer imageSpriteRender;
|
||||
private Material backMaterial;
|
||||
private Material wrongColorMaterial;
|
||||
|
||||
@@ -41,12 +45,26 @@ public class EyeTarget : MonoBehaviour
|
||||
SetToMinBurnRadius();
|
||||
SetToMaxBlur(false);
|
||||
SetToNoWrongColor();
|
||||
SetNoImage();
|
||||
|
||||
}
|
||||
private void Start()
|
||||
{
|
||||
|
||||
}
|
||||
public void ImageIn(float duration)
|
||||
{
|
||||
imageSpriteRender.DOFade(1,duration);
|
||||
}
|
||||
public void ImageOut(float duration)
|
||||
{
|
||||
imageSpriteRender.DOFade(0,duration);
|
||||
}
|
||||
public void SetNoImage()
|
||||
{
|
||||
imageSpriteRender.SetAlpha(0);
|
||||
}
|
||||
|
||||
public void SetToMinBurnRadius()
|
||||
{
|
||||
forwardMaterial.SetFloat("_SourceGlowDissolveFade", burnRadiusMin);
|
||||
|
||||
Reference in New Issue
Block a user