Files
2026-05-26 16:15:54 +08:00

66 lines
1.7 KiB
C#

using asap.core;
using cfg;
using GameCore;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace game
{
public class WashingGameCleanFoam : WashingGamePainting
{
#region
protected override void StartConclusion(EventWashingConclusionData data)
{
if (m_PaintTexture != null)
{
//SetPaintTextureColor(Color.white);
SetPaintTextureColor(new Color(1f, 1f, 1f, 0f), true);
}
base.StartConclusion(data);
}
#endregion
#region
protected override void InitPanel()
{
base.InitPanel();
// 关闭笔刷填充进度
panel.ResetBrushChannelCounterFillAndInverse(true, true);
this.StartCoroutine(StartCountingFill());
}
private IEnumerator StartCountingFill()
{
int index = 0;
while (index < 10)
{
yield return null;
index++;
}
panel.StartCountingFill();
}
#endregion
#region
public override void InitGame(string name)
{
base.InitGame(name);
this.m_GameType = EventWashingOperation.Washing;
}
public override void Fresh(EventWashingDataManager dataManager)
{
SetPaintTextureColor(Color.white);
ChangePaintSphereBlendModeToSubtractiveSoft();
m_PainterColor = new Color(1f, 1f, 1f, 0f);
base.Fresh(dataManager);
if (m_PaintTexture != null) m_PaintTexture.gameObject.SetActive(true);
}
#endregion
}
}