// Update is called once per frame void Update() { //Update the visual level here. if (controller != null) { //currently setting visual level in equal intervals of max speed. percentage = controller.moveSpeed / controller.maxSpeed; if (percentage > .66f) { GlobalVisLevel = VLevel.Surreal; } else if (percentage < .33f) { GlobalVisLevel = VLevel.Urban; } else { GlobalVisLevel = VLevel.Dream; } } }
// Use this for initialization void Start() { GlobalVisLevel = VLevel.Urban; ObjLoader(); }