Second commit
This commit is contained in:
commit
36840f3ad4
999 files changed
+61364
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using R3;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.D.Cleaning.CleanTools
|
||||
{
|
||||
public abstract class CleanTool
|
||||
{
|
||||
protected float DurabilityUsageStep;
|
||||
protected Texture2D BrushTexture;
|
||||
protected float CleanRadius;
|
||||
|
||||
public abstract CleanToolType ToolType { get; }
|
||||
|
||||
protected CleanTool(float durabilityUsageStep, float cleanRadius, Texture2D brushTexture)
|
||||
{
|
||||
IsDirty.Value = false;
|
||||
|
||||
DurabilityUsageStep = durabilityUsageStep;
|
||||
CleanRadius = cleanRadius;
|
||||
BrushTexture = brushTexture;
|
||||
}
|
||||
|
||||
public ReactiveProperty<bool> IsDirty { get; } = new();
|
||||
public ReactiveProperty<float> CurrentDirtiness { get; }
|
||||
= new(0f);
|
||||
|
||||
public abstract TryapkaUsageInfo Use();
|
||||
|
||||
public abstract void Clean();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user