public void clearAllBarriers() { BarrierContainer bcScript = barrierContainer.GetComponent <BarrierContainer>(); bcScript.clearAllBarriers(); }
public void initialize() { barrierSphereScript = barrierToInstantiate.GetComponent <BarrierSphere>(); barrierContainerScript = barrierContainer.GetComponent <BarrierContainer>(); updateGridSize(); }