void modifyWallMotion(int x, int z, float motionMod) { WallScript thisWall = wm.WallArray[x][z].GetComponent <WallScript>(); thisWall.modifyMotion(motionMod); }