Ejemplo n.º 1
0
 public IEnumerator TimerSpeed()
 {
     while (Speed < 1 && Malfunction == 1)
     {
         Debug.Log("Slowing");
         Game_Manager.instance.Speed      += 0.1f;
         Game_Manager.instance.WheelSpeed -= 0.25f;
         Event_Manager.Music_Change();
         yield return(new WaitForSeconds(1 * Speed));
     }
     // Debug.Log("Normalized");
 }
Ejemplo n.º 2
0
    public void Rotate_Wheel(Time_States _ts)
    {
        switch (_ts)
        {
        case (Time_States.Speed):
            Game_Manager.instance.Speed      -= 0.1f;
            Game_Manager.instance.WheelSpeed += 0.25f;
            Event_Manager.Music_Change();
            break;

        case (Time_States.Gravity):
            Game_Manager.instance.Gravity      -= 0.1f;
            Game_Manager.instance.WheelGravity += 0.25f;
            break;
        }
    }