public void UpdateFaceStyle() { Vector3 pos = transform.position; if (pos.x < -1.25f) { this.facestyle = CubeFaceStyle.Front; } else if (pos.x > 1.25f) { this.facestyle = CubeFaceStyle.Back; } else if (pos.y > 1.25f) { this.facestyle = CubeFaceStyle.Up; } else if (pos.y < -1.25f) { this.facestyle = CubeFaceStyle.Down; } else if (pos.z < -1.25f) { this.facestyle = CubeFaceStyle.Right; } else if (pos.z > 1.25f) { this.facestyle = CubeFaceStyle.Left; } else { this.facestyle = CubeFaceStyle.None; } }