Files
UltimateFishing/Assets/Scripts/Assembly-UnityScript/splat_custom_class.cs
2026-02-21 16:45:37 +08:00

42 lines
578 B
C#

using System;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class splat_custom_class
{
public List<float> value;
public bool custom;
public bool foldout;
public Rect rect;
public Rect rect2;
public Rect rect3;
public float totalValue;
public bool changed;
public splat_custom_class(int length)
{
value = new List<float>();
for (int i = 0; i < length; i++)
{
value.Add(0f);
}
}
public virtual void CalcTotalValue()
{
totalValue = 0f;
for (int i = 0; i < value.Count; i++)
{
totalValue += value[i];
}
}
}