Uma script update

This commit is contained in:
左右看
2023-07-01 12:33:16 +08:00
parent 33943e4205
commit 1642fabc93
65 changed files with 2133 additions and 238 deletions
@@ -0,0 +1,24 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Gallop.Live
{
public class RandomTable<T>
{
private const int MAX_COUNT = 16;
private const int OFFSET_RANDOM_BUCKET = 1;
private bool _bInitialized;
private Func<int, int, T> _fnGenerator;
private int _bucketCount;
private int _stackSize;
private T[,] _arrRandomValue;
private int _curStackPtr;
public bool isInitialized { get; }
public int bucketCount { get; }
public int stackSize { get; }
public T Item { get; }
}
}