|
|
@ -197,6 +197,11 @@ namespace ET |
|
|
|
|
|
|
|
|
|
|
|
public static void InitNoDb(Unit unit) |
|
|
|
public static void InitNoDb(Unit unit) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
var bc = unit.GetComponent<BuildingComponent>(); |
|
|
|
|
|
|
|
if (bc == null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
foreach (var v in unit.GetComponent<BuildingComponent>().Children.Values) |
|
|
|
foreach (var v in unit.GetComponent<BuildingComponent>().Children.Values) |
|
|
|
{ |
|
|
|
{ |
|
|
|
foreach (var c in v.Children.Values) |
|
|
|
foreach (var c in v.Children.Values) |
|
|
|