22 lines
452 B
C#
22 lines
452 B
C#
|
|
public class TableChecker : MonoBehaviourSingletonTemplate<TableChecker>
|
||
|
|
{
|
||
|
|
table_base[] tables;
|
||
|
|
|
||
|
|
protected override void Awake()
|
||
|
|
{
|
||
|
|
base.Awake();
|
||
|
|
DontDestroy();
|
||
|
|
tables = GetComponents<table_base>();
|
||
|
|
}
|
||
|
|
|
||
|
|
public bool CheckAllLoad()
|
||
|
|
{
|
||
|
|
for (int i = 0; i < tables.Length; i++)
|
||
|
|
{
|
||
|
|
if (!tables[i].Get_LoadComplete())
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
}
|