//глобальный код для определения статуса карты void Awake() { if (instance != null) { Debug.LogError("Ошибка: Более одного MapGlobalStatus на сцене"); return; } instance = this; }
void Start() { mGS = MapGlobalStatus.instance; allFuncChildren = GetComponentsInChildren <InteractionControllerCells>(); boxCollider = GetComponent <BoxCollider>(); }