public void Cube_OnHitCube() { if (isPossible) { _spawnCubes.GetCube(gameObject, gameObject); _collision.OnHitCube -= Cube_OnHitCube; } }
private void SwitchScriptsScene() { GetComponentInChildren <JumpClickController>().enabled = true; _spawnCubes.GetCube(_cubePrefab, _mainCube); enabled = false; }